Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 4.3.4-dev-4 and 4.2.6-dev-2 available
- X-seq: zsh-users 12317
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: 4.3.4-dev-4 and 4.2.6-dev-2 available
- Date: Wed, 12 Dec 2007 02:08:37 +0100
- In-reply-to: <22582.1197372038@xxxxxxx>
- Mail-followup-to: Zsh users list <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <22582.1197372038@xxxxxxx>
On 2007-12-11 11:20:38 +0000, Peter Stephenson wrote:
> I've uploaded new development versions of 4.3.4 and 4.2.6 to
> ftp://ftp.zsh.org/pub/development . Unless something major turns up I
> will release 4.3.5 and 4.2.7 some time around the weekend.
Another bug:
set -x
[ \( ! -e \) ] || echo $?
test \( ! -e \) || echo $?
test ! -e || echo $?
`command which test` \( ! -e \) || echo $?
gives:
+zsh:11> [ '(' ! -e ')' ']'
[: argument expected
+zsh:11> echo 1
1
+zsh:12> test '(' ! -e ')'
test: argument expected
+zsh:12> echo 1
1
+zsh:13> test ! -e
+zsh:13> echo 1
1
+zsh:1> which test
+zsh:14> /usr/bin/test '(' ! -e ')'
+zsh:14> echo 1
1
According to POSIX[*], this 4-argument test on ( ! -e ) is equivalent
to the 2-argument test on ! -e and this is valid (as you can see, the
"test" utility from the coreutils is correct). However, the current
versions of bash, dash and ksh93 under Debian are buggy too (even
worse, they return 2 for the first two tests).
[*] http://www.opengroup.org/onlinepubs/009695399/utilities/test.html
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author