Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
is this a problem?
- X-seq: zsh-users 19004
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: is this a problem?
- Date: Sat, 2 Aug 2014 09:12:37 +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,
Looks like a problem:
% zsh -f
localhost% array=(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 have printed
one
two
one
three
but it isn't.
Thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author