Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: bug in ${(z)...} with newlines
- X-seq: zsh-workers 28013
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: bug in ${(z)...} with newlines
- Date: Wed, 9 Jun 2010 07:36:05 -0700
- In-reply-to: <AANLkTimJ0WzSVNKMz7UEYVX2yiBI3Mn16avrF2Z9-E4E@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <15865.1276088859@xxxxxxx> <AANLkTimJ0WzSVNKMz7UEYVX2yiBI3Mn16avrF2Z9-E4E@xxxxxxxxxxxxxx>
On Wed, Jun 9, 2010 at 7:34 AM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> foo=(${(q)${(z)foo}})
> bar=time
Er, that should be bar=(time) of course.
> for word in $foo
> do if [[ $word == '\;' ]]
> then bar+=($word time)
> else bar+=($word)
> fi
> done
Messages sorted by:
Reverse Date,
Date,
Thread,
Author