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

RC_EXPAND_PARAM and (s:string:)



Hello,

I just found this:

% zsh -c 'setopt rcexpandparam ;line="one::three";print -l "${(s.:.)line}"'
one

three
%

According to manpage of zshexpn, the empty elements of arrays which
generated by splitting won't be retained inside double quotes. But looks
like rcexpandparam can change this condition. Not sure if this is a
problem.

Thanks in advance.



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