Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: BUG: zsh-3.1.5-pws-14: parameter expansion not working properly
- X-seq: zsh-workers 6052
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: BUG: zsh-3.1.5-pws-14: parameter expansion not working properly
- Date: Fri, 16 Apr 1999 13:26:57 +0400
- Importance: Normal
- In-reply-to: <990416020418.ZM13627@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> All that aside, a desirable (?) effect of the current interpretation is
> that join reverses split (except for the initial array-to-scalar change):
>
... as long as no SH_WORD_SPLIT is in effect. IFS splits may remove more
than IFS joins add.
> zsh% print -l ${(j/:/)${(s/:/)foo}}
> a:b x:y
>
> With your interpretation, this would yield a:b:x:y.
Don't laugh - it was exactly what I needed once. And I personally find
nothing wrong or illogical with it.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author