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

Re: treatment of empty strings - why is this not a bug?



On Tue, 13 Jan 2009 02:32:34 -0500
Greg Klanderman <gak@xxxxxxxxxxxxxx> wrote:
> lwm% x=::: && for v in "${(s-:-)x}" ; do echo "v= =>$v<=" ; done
> v= =><=
> v= =><=

Hmm...

% setopt rcexpandparam                                     
% x=::: && for v in "${(s-:-)x}" ; do echo "v= =>$v<=" ; done
v= =><=
v= =><=
v= =><=
v= =><=

What's this got to do with RC_EXPAND_PARAM and why is the behaviour
without that option not a bug?  Er...  I'm very glad you asked.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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