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

Re: More incompatibility :-) RE: PATCH: 3.1.9-dev-8: Re: Word splitting in zsh

On Feb 13, 10:51am, Andrej Borsenkow wrote:
} > +    static int mult_spbreak, mult_shwsplit;
} They are static. Is there any chance, that two unrelated substitutions
} may run at the same time? E.g. inside nested command substitution?
} This forms its own context and both above must be reset.

They are saved, set, and restored in a small block around the call to
multsub(), and otherwise referenced only on first entry to paramsubst().
They have no effect other than to override the current setting of the
shwordsplit option.  That does mean that

	print ${=foo+"$(unsetopt shwordsplit;print -l $bar)"}

actually *does* split the value of $bar within the command subst.  Hmm.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

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