From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7469 invoked by alias); 29 Jan 2012 18:45:11 -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: 30147 Received: (qmail 5873 invoked from network); 29 Jan 2012 18:44:59 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.6.29.42 Date: Sun, 29 Jan 2012 18:36:44 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Bug with bash emulation regarding ':' Message-ID: <20120129183644.6d49d237@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 29 Jan 2012 04:46:35 +0200 Felipe Contreras wrote: > _test () > { > array="one two three" > for e in $array > do > echo "'$e'" > done > } > > l= > : ${l:=$(_test)} > echo "_${l}_" >... > _'one two three'_ As this is OK with l=$(_test) presumably something is going on with quoting and/or tokenisation in or close to multsub(), which is some of the hairier code in substitution, when SH_WORD_SPLIT is in effect. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/