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

Re: ${-str}



Geoff Wing wrote:

> Tanaka Akira <akr@xxxxxxxx> typed:
> :Z(4):akr@serein% Src/zsh -f             
> :serein% print -lr ${-str}
> :569XZfims
> :serein% 
> :
> :Hm.  What's `569XZfims'?
> 
> Looks like short option list to me.
> 
> % zsh -f
> % echo ${-}
> 569XZfims
> % setopt rcs; echo ${-}
> 569XZims
> % setopt norcs; echo ${-}
> 569XZfims
> 
> Src/options.c or the manual has a list.

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?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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