Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: not an error?
On Oct 8, 12:56pm, Ray Andrews wrote:
}
} ... do you ever really need the outer quotes around an array like that?
As usual it depends on the context. Zsh in "native" emulation handles
array expansions differently than other shells, so most of the time you
don't need quotes -- but if you want to train yourself to write shell
code in a way that's portable to other shells, it's better to get used
to quoting.
On the other hand if you're using ${(k)...} then that's already not
portable.
There are cases (mostly involving nested expansions) where you need the
quotes to get the right interpretation.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author