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

Re: RC_EXPAND_PARAM final patch



On Mon, 4 Aug 1997 hzoli@xxxxxxxxxxxx wrote:

> 
> But this would mean an other change: ${x}{a,b} will expand to 4 words,
> 
> x ya x yb
> 
> instead of the current x ya yb.  The current behaviour is the way ksh
> behaves, and the planned new one is similar to bash (you can use $* and $@
> to study the behaviour of arrays in bash and ksh).
> 

Currently (3.1.2 + RC_EXPAND_PARAM final patch):

% a=(a "b ")
% x=(x "y z")
% unsetopt shwordsplit
% args ${^a}1
"a1" "b 1"
% args ${^x}1
"x1" "y z1"

It's O.K., but ...
% setopt shwordsplit
% args ${^a}1
"a1" "b1" "1"
% args ${^x}1
"x1" "y1" "z1"     ????

Shouldn't it be  "x1" "y" "z1"  ?

-------------------------------------------------------------------------
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