Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
flag z won't cause forced joining?
- X-seq: zsh-users 17332
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-user <zsh-users@xxxxxxx>
- Subject: flag z won't cause forced joining?
- Date: Fri, 19 Oct 2012 16:03:15 +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
Hi,
I just found that it looks like the z flag won't cause "forced joining"
which stated in rules 10, like this:
% typeset -a arr;arr[1]=foo;arr[2]=\'bar;arr[3]=baz\';print -l ${(z)arr}
foo
'bar
baz'
% typeset -a arr;arr[1]=foo;arr[2]=\'bar;arr[3]=baz\';print -l ${(z)"${arr}"}
foo
'bar baz'
%
Not sure is it a problem. Please help. Thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author