% var1=( a b c d )% var2=${(j:\0:)var1}% print $#var210
% var3=${(pj:\0:)var1}% print $#var37
% print -l ${(0)var3}abcd
% print -l ${(@0)var3}abcd
On Nov 27, 2019, at 8:18 AM, Marc Chantreux <eiro@phear.org> wrote:hello Perry,I’m very new here so take what I say with caution but why
did you put the backslash before the 0?
if you use xxd:
echo -n 0 $'\0'|xxd
you can see that 0 is the symbol 0x30 (48th of the ascii table)
when \0 is 00.
\0 is non-sense in a legit text stream so it can be used as
a separator instead of all those separators that can exist in
text ( "\n", ",", ":" " ", "\t").
see xargs -0, find -print0, ...
regards
marc