Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [bug?] test adf -ge 0



    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