Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: quoting words
- X-seq: zsh-users 27163
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Pier Paolo Grassi" <pierpaolog@xxxxxxxxx>, "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: quoting words
- Date: Tue, 28 Sep 2021 16:09:16 -0400
- Archived-at: <https://zsh.org/users/27163>
- In-reply-to: <CAP+y1xBk_UYdyA7Jt6-FWADT+PFw8oMdiH1pApr=BqKjQD5fQA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xAUT44XBu8S0EwhHAU=AhGR-61G08H3+5kOS=QQ57VBSg@mail.gmail.com> <CAP+y1xCCf1_OPWzc7NW7tW_pad+Mx5gPH66wmHLWveG-1WPcOA@mail.gmail.com> <CAH+w=7aZSUE0Qc3Pu+3gGGWusTE1EcMqX+MCvytPUkUaHT3CHA@mail.gmail.com> <CAP+y1xBk_UYdyA7Jt6-FWADT+PFw8oMdiH1pApr=BqKjQD5fQA@mail.gmail.com>
On Tue, Sep 28, 2021, at 3:54 PM, Pier Paolo Grassi wrote:
> on 5-8 I get:
>
>> a=(sa\ bb cc\ dd); a=${(qqq)a}
>> typeset -p a
> typeset a='"sa bb cc dd"'
Perhaps it should have been ${(qqq@)a}?
% a=(sa\ bb cc\ dd); typeset -p a
typeset -a a=( 'sa bb' 'cc dd' )
% b=${(qqq@)a}; typeset -p b
typeset b='"sa bb" "cc dd"'
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author