Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

flag z won't cause forced joining?



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