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

Exporting arrays



% foo=(a b c)
% typeset | grep zzz
array foo=(a b c)
% export foo=(a b c)
% typeset | grep zzz 
array exported foo=(a b c)

However,

% unset foo
% export foo=(a b c)
% typeset | grep zzz 
exported foo='(a b c)'

Presumably there's a decent reason for this behaviour; would
someone be good enough to explain it to me?



Messages sorted by: Reverse Date, Date, Thread, Author