From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4104 invoked by alias); 29 Jan 2012 02:46:53 -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: 30141 Received: (qmail 10824 invoked from network); 29 Jan 2012 02:46:42 -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:date:message-id:subject:from:to:content-type; bh=FJuNGeWh0dULVECf0toitZEoyx8hlLo87flf+RgYlmM=; b=HMdpFHiOsamaMFw2WvhGN+gkc9vHSc+WK+DZOMyVF6mSJhSgmhfh1fB9VTFiAoJ4vj gPuDyTYvCdGKnXUHmXXPbBVAH+8f35eSVGq88MsrrVkxvdIHWezl5a8LAP51ysjwUWft C2kQxHcsClLKnFec+qkvZIng6CJGB3wF5/lQ8= MIME-Version: 1.0 Date: Sun, 29 Jan 2012 04:46:35 +0200 Message-ID: Subject: Bug with bash emulation regarding ':' From: Felipe Contreras To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Hi, 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}_" --- Bash generates: _'one' 'two' 'three'_ Zsh with bash emulation generates: _'one two three'_ -- Felipe Contreras