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

Re: Exporting arrays



Bernd Eggink wrote:
>   a=(${(s(:))aex})
>
>Unfortunately this doesn't work if an array element is empty! Example:

Both behaviours are useful.  What would really be nice would be to
make the delimiter a glob pattern, so that both behaviours (and more)
are available.  That would make the default behave the way you want it,
which is probably better overall, because if one really wanted the other
form of splitting then this would become immediately obvious.

-zefram



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