From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3464 invoked by alias); 9 Jun 2010 14:36:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28013 Received: (qmail 8158 invoked from network); 9 Jun 2010 14:36:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) MIME-Version: 1.0 In-Reply-To: References: <15865.1276088859@csr.com> Date: Wed, 9 Jun 2010 07:36:05 -0700 Message-ID: Subject: Re: PATCH: bug in ${(z)...} with newlines From: Bart Schaefer To: Zsh hackers list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jun 9, 2010 at 7:34 AM, Bart Schaefer w= rote: > foo=3D(${(q)${(z)foo}}) > bar=3Dtime Er, that should be bar=3D(time) of course. > for word in $foo > do if [[ $word =3D=3D '\;' ]] > =A0 then bar+=3D($word time) > =A0 else bar+=3D($word) > =A0 fi > done