zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: PATCH: bug in ${(z)...} with newlines
Date: Wed, 9 Jun 2010 07:36:05 -0700	[thread overview]
Message-ID: <AANLkTilSbX92O3ME2YfyA0mqPuDElwzWU4-wcbxPQIaf@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimJ0WzSVNKMz7UEYVX2yiBI3Mn16avrF2Z9-E4E@mail.gmail.com>

On Wed, Jun 9, 2010 at 7:34 AM, Bart Schaefer <schaefer@brasslantern.com> 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


  reply	other threads:[~2010-06-09 14:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09 13:07 Peter Stephenson
2010-06-09 14:34 ` Bart Schaefer
2010-06-09 14:36   ` Bart Schaefer [this message]
2010-06-09 15:54   ` Peter Stephenson
2010-06-16 22:06     ` Bart Schaefer
2010-06-16 22:13       ` Bart Schaefer
2010-06-17 11:50         ` Peter Stephenson
2010-06-17 16:42           ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTilSbX92O3ME2YfyA0mqPuDElwzWU4-wcbxPQIaf@mail.gmail.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).