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

Re: Is outer quoting not needed (docs say "redundant")?



On Wed, 13 Dec 2017 08:00:51 +0100
Sebastian Gniazdowski <psprint@xxxxxxxxxxx> wrote:
> Going further, I once had serious doubts about such quotings
> overlapping. Digged out a code:
>
> gitout=( "${(@f)"$( "${gitcmd[@]}" )"}" )
> 
> Is it the same?

It should be, because the count of braces doesn't go to zero between the
first "${" and the last "}" (see the rules I summarised last time).  So
only the final double quote causes quoting to end.

pws



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