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

Re: ${-str}



Sven wrote: 
> Geoff Wing wrote:
> > :serein% print -lr ${-str}
> > :569XZfims
> > % setopt norcs; echo ${-}
> > 569XZfims
> 
> Yep. The same as for the other special parameters (`${$foo}').
> Shouldn't we change this to be an error? Or do we really need this for 
> compatibility?

I think this should be an error.  This was never documented behaviour and
most forms of bad parameter syntax produce complaints.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



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