Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Exporting arrays
- X-seq: zsh-users 1221
- From: Andrew Main <zefram@xxxxxxxxx>
- To: eggink@xxxxxxxxxxxxxxxxxx (Bernd Eggink)
- Subject: Re: Exporting arrays
- Date: Mon, 12 Jan 1998 15:15:00 +0000 (GMT)
- Cc: zefram@xxxxxxxxx, adam.spiers@xxxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <34BA1F3D.18EE4BAB@xxxxxxxxxxxxxxxxxx> from "Bernd Eggink" at Jan 12, 98 02:48:45 pm
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