Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug with bash emulation regarding ':'
- X-seq: zsh-workers 30155
- From: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Bug with bash emulation regarding ':'
- Date: Mon, 30 Jan 2012 21:22:01 +0200
- Cc: Felipe Contreras <felipe.contreras@xxxxxxxxx>
- 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=
- In-reply-to: <CAMP44s2Zo5U=RVuznntDOFeqUZeJdmg1XfHMg4egu-1PRjnkKA@mail.gmail.com>
- 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: <CAMP44s2Zo5U=RVuznntDOFeqUZeJdmg1XfHMg4egu-1PRjnkKA@mail.gmail.com>
On Sun, Jan 29, 2012 at 4:46 AM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
> Seems like there's a bug in bash emulation:
>
> ---
> #!sh
>
> _test ()
> {
> array="one two three"
> for e in $array
> do
> echo "'$e'"
> done
> }
>
> l=
> : ${l:=$(_test)}
> echo "_${l}_"
> ---
Actually, the same with:
true ${l:=$(_test)}
blah=${l:=$(_test)}
Or pretty much anything.
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author