From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14616 invoked by alias); 3 Aug 2010 22:24:59 -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: 28126 Received: (qmail 16032 invoked from network); 3 Aug 2010 22:24:56 -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 autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.56 as permitted sender) Date: Tue, 3 Aug 2010 22:43:14 +0100 From: Peter Stephenson To: Eric Blake Cc: zsh-workers@zsh.org Subject: Re: Fix testsuite errors due to shell quoted parameter expansion issue. Message-ID: <20100803224314.607ffb9b@pws-pc> In-Reply-To: <4C588248.9050807@redhat.com> References: <20100803203204.GG13690@gmx.de> <4C588248.9050807@redhat.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=DhNl2YeytwJssBBGe49HJX82LNDFEEVkpVB34RXKaPo= c=1 sm=0 a=wVThpnqthYIA:10 a=DogomfpGjd0A:10 a=kj9zAlcOel0A:10 a=20KFwNOVAAAA:8 a=NLZqzBF-AAAA:8 a=2t-G9IrX6CYYi--VJHsA:9 a=yOZU8XGVu85bn3Ld-ohdm4fxnYkA:4 a=CjuIK1q_8ugA:10 a=jEp0ucaQiEUA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Tue, 03 Aug 2010 14:55:36 -0600 Eric Blake wrote: > But it is _also_ a bug in zsh; adding zsh-workers accordingly. > > $ zsh -cvx 'f=" val" e=; echo "$e"$f' > +zsh:1> f=' val' e='' > +zsh:1> echo ' val' > val > > Oops - zsh only passed one argument to echo, with a leading space, > instead of passing an empty argument and letting echo supply the space. That's not a bug, you haven't enabled the SH_WORD_SPLIT option. Try in sh compatibility mode. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/