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

SH_WORD_SPLIT and ${(o)...}



% a=(a "b ")
% x=(x y)
% args ${a}${x}
a
b x
y
% args ${(o}a}${x}
a
b x
y

OK so far, but ...
setopt shwordsplit

% args ${a}${x}
a
b
x
y
% args ${(o}a}${x}
a
bx
y

Given, that (o) in this case does nothing I expect the second subst to
result in 4 words as well.

-------------------------------------------------------------------------
Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@xxxxxx
-------------------------------------------------------------------------




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