From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5198 invoked from network); 9 Apr 2002 16:34:39 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Apr 2002 16:34:39 -0000 Received: (qmail 28479 invoked by alias); 9 Apr 2002 16:34:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16952 Received: (qmail 28462 invoked from network); 9 Apr 2002 16:34:29 -0000 From: "Bart Schaefer" Message-Id: <1020409163417.ZM3251@candle.brasslantern.com> Date: Tue, 9 Apr 2002 16:34:17 +0000 In-Reply-To: <25364.1018351812@csr.com> Comments: In reply to Peter Stephenson "Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)" (Apr 9, 12:30pm) References: <25364.1018351812@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: Peter Stephenson , zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 9, 12:30pm, Peter Stephenson wrote: } } By the way, I'm sure this is horribly incomplete at best --- and } paramsubst() is too grotesque for me to understand it --- but, just so I } understand what is going on, what is the problem with (deliberately } expanded the context): Re-read the comment: "this leaves the unquoted substrings unsplit." If you turn off spbreak there, then ${=1+some words here} becomes broken. } Index: Src/subst.c } =================================================================== } /* } * This is not good enough for sh emulation! Sh would } * split unquoted substrings, yet not split quoted ones } * (except according to $@ rules); but this leaves the } * unquoted substrings unsplit, and other code below } * for spbreak splits even within the quoted substrings. } */ } multsub(&val, (aspar ? NULL : &aval), &isarr, NULL); } copied = 1; } + if (spbreak == 1) } + spbreak = 0; } } } break; -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net