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

Why are empty elements removed from array expansion?



% a=(a '' c); print -l $a
a
c

Why am I forced to use

% print -l "$a[@]"

?

I realize that this wonât change, but it really bugs me that this is
the standard behavior.  It should be the other way around, that is,
removing empty elements shouldnât be the default.



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