Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [bug?] test adf -ge 0
- X-seq: zsh-workers 20291
- From: DervishD <disposable1@xxxxxxxxxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: [bug?] test adf -ge 0
- Date: Tue, 31 Aug 2004 22:33:41 +0200
- Cc: James William Pye <flaw@xxxxxxxx>, zsh-workers@xxxxxxxxxx
- In-reply-to: <20040831191131.GG33896@xxxxxxxxxxxxxxxx>
- Mail-followup-to: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>, James William Pye <flaw@xxxxxxxx>, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <1093976533.69019.10.camel@localhost> <20040831191131.GG33896@xxxxxxxxxxxxxxxx>
Hi Dan & James :)
* Dan Nelson <dnelson@xxxxxxxxxxxxxxx> dixit:
> In the last episode (Aug 31), James William Pye said:
> > Both sh(freebsd) and bash echo an error message and return 2.
> /bin/sh on Tru64 5.1, AIX 5.2, and Solaris 9 all succeed.
But /bin/test in GNU coreutils fails too...
> > I know zsh is not bash or sh, but this is a fairly serious
> > inconsistency, IMO.
> It's probably in the range of "undefined behaviour". I can't find any
> manpages or standards docs that say that test must verify that numeric
> arguments are really numbers.
You're true, at least SUSv3 doesn't specify anything. I suppose
that's because atoi() behaviour...
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author