Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: quoting words



on 5-8 I get:

> a=(sa\ bb cc\ dd); a=${(qqq)a}
> typeset -p a                  
typeset a='"sa bb cc dd"'


Pier Paolo Grassi


Il giorno mar 28 set 2021 alle ore 18:04 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> ha scritto:
On Tue, Sep 28, 2021 at 4:39 AM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> a=(sa\ bb cc\ dd); a=${(qq@)"${a[@]}"}; typeset -p a; echo -e $a

It should be sufficient to do

a=${(qqq)a}


Messages sorted by: Reverse Date, Date, Thread, Author