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



>
> 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