Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
rcexpandparam doesn't take effect in ${=:-one $array}
- X-seq: zsh-users 19005
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: rcexpandparam doesn't take effect in ${=:-one $array}
- Date: Sun, 3 Aug 2014 09:32:47 +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>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
I found that no matter rcexpandparam being set or not, ${=:-one $array}
will expand to the same result:
% zsh -f
localhost% array=(two three)
localhost% print -l ${:-one $array}
one two
three
localhost% print -l ${=:-one $array}
one
two
three
localhost% setopt rcexpandparam
localhost% print -l ${:-one $array}
one two
one three
localhost% print -l ${=:-one $array}
one
two
three
localhost%
I think the last command should print
one
two
one
three
but it isn't.
Thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author