From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1695 invoked from network); 9 Apr 2002 11:18:44 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 9 Apr 2002 11:18:44 -0000 Received: (qmail 12948 invoked by alias); 9 Apr 2002 11:18:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16948 Received: (qmail 12924 invoked from network); 9 Apr 2002 11:18:35 -0000 From: "Bart Schaefer" Message-Id: <1020409111826.ZM3033@candle.brasslantern.com> Date: Tue, 9 Apr 2002 11:18:26 +0000 In-Reply-To: Comments: In reply to Akim Demaille "Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)" (Apr 9, 12:51pm) References: <28727.1018348543@csr.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk, Akim Demaille Subject: Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures) Cc: ab@purdue.edu, bug-autoconf@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 9, 12:51pm, Akim Demaille wrote: } } | "${1+"$@"}" also works in zsh, but this confuses other variants of sh } | --- it works in bash, but sh on SunOS 5.8 tripped over it. } } Err, I'm not even sure it does what I want: I suspect that Zsh } understands this as a single argument, while I expect to have $# of } them. No, zsh understands "${1+"$@"}" as $# arguments, same as bash v1. For that matter, bash1 and zsh[34] agree on "${1+$@}" as well.