From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 211 invoked by alias); 30 Jan 2012 19:22:14 -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: 30155 Received: (qmail 20608 invoked from network); 30 Jan 2012 19:22:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8/w68PdI0739rttaeHjUpjfbYpKJMEAMg6ko8C2fz64=; b=E2hotmhJmXET/rxZW1y3EWvceA/b5VROSCS6ZbyGjMh62XJge24RZrBUzVfiDijqxv hNwyo8UFX8M9GNKWIAMrEpxde/9oV8SfcotgbzyKh0mLVQKUewkNHJo25Lc5FZr9ol7K NQs49vNAzzW62ZaakhjVWfV+cGG6oIHwApYX0= MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 30 Jan 2012 21:22:01 +0200 Message-ID: Subject: Re: Bug with bash emulation regarding ':' From: Felipe Contreras To: zsh-workers@zsh.org Cc: Felipe Contreras Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Jan 29, 2012 at 4:46 AM, Felipe Contreras wrote: > Seems like there's a bug in bash emulation: > > --- > #!sh > > _test () > { > =C2=A0 =C2=A0 =C2=A0 =C2=A0array=3D"one two three" > =C2=A0 =C2=A0 =C2=A0 =C2=A0for e in $array > =C2=A0 =C2=A0 =C2=A0 =C2=A0do > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0echo "'$e'" > =C2=A0 =C2=A0 =C2=A0 =C2=A0done > } > > l=3D > : ${l:=3D$(_test)} > echo "_${l}_" > --- Actually, the same with: true ${l:=3D$(_test)} blah=3D${l:=3D$(_test)} Or pretty much anything. --=20 Felipe Contreras