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

Re: RC_EXPAND_PARAM bug



On Wed, 30 Jul 1997, Zoltan Hidvegi wrote:

> 
> What would be the preferred evaluation of ${^a}1${^^x}?
> 
> Alternatives:
> 
> 1. a1x ay b1x by  (current)
> 
> 2. a1x y b1x y    (beta16 and older)
> 
> 3. a1x b1x y      (just an other logical solution).
> 
> The current behaviour is the simplest to code solution, I think the other
> two are not very hard to implement, but I'm not sure it is worth the
> extra effort.
> 

zsh-3.1.2 with RC_EXPAND_PARAM bugfix.

% echo ${^a}1${^^x}
a1x ay b1x by

% echo ${^^a}1${^x}
a b1x b1y

It looks illogical. Either the latter should be 'ax b1x ay b1y' or the
former 'a1x b1x y'. 

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