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

Re: Understanding why...



On Mon, Aug 7, 2017 at 6:26 PM, Clint Priest <cpriest@xxxxxxxxxxxxxxxx> wrote:
> Interesting, when you say by default, is that an option that can be changed?

When I say "by default", I mean "you change it by adding (@)".

> Thanks for that tidbit, any chance you know in the manual whereabouts it
> talks about this inner splitting and outer preservation?

>> On 8/7/2017 7:36 PM, Bart Schaefer wrote:
>> e.g., search for the string "Rules" in "man zshexpn".

> Also (and I had tried to do this), is it possible to break out the nested
> expansions into their separate parts to see what is going on (via trace)?

Sure; setopt xtrace and then compare

: ${(s/:/)${LS_COLORS%:}}
: ${(s/=/)${(s/:/)${LS_COLORS%:}}}
: ${(@s/=/)${(s/:/)${LS_COLORS%:}}}

(where ":" is the no-op command that discards its arguments)



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