Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)
- X-seq: zsh-workers 16948
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx, Akim Demaille <akim@xxxxxxxx>
- Subject: Re: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)
- Date: Tue, 9 Apr 2002 11:18:26 +0000
- Cc: ab@xxxxxxxxxx, bug-autoconf@xxxxxxx
- In-reply-to: <mv44rilxhzo.fsf@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <28727.1018348543@xxxxxxx> <mv44rilxhzo.fsf@xxxxxxxxxxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author