Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RC_EXPAND_PARAM and (s:string:)
- X-seq: zsh-users 17319
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: RC_EXPAND_PARAM and (s:string:)
- Date: Thu, 11 Oct 2012 16:55:06 +0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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