Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
splitting in assignment forms of expansion
- X-seq: zsh-users 17291
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: splitting in assignment forms of expansion
- Date: Thu, 27 Sep 2012 10:42:36 +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,
The manpage of zshexpn states about "${=...}":
Note that splitting is applied to word in the assignment forms
of spec before the assignment to name is performed. This
affects the result of array assignments with the A flag.
but looks like the splitting isn't applied to word first:
% print -l ${=xx::=foo bar}
foo
bar
% print -l $xx
foo bar
%
I'm confused on this. Please help.
Thanks.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author