From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4136 invoked from network); 31 Aug 2004 20:47:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 31 Aug 2004 20:47:04 -0000 Received: (qmail 32153 invoked from network); 31 Aug 2004 20:46:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 31 Aug 2004 20:46:58 -0000 Received: (qmail 2565 invoked by alias); 31 Aug 2004 20:46:56 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 20291 Received: (qmail 2544 invoked from network); 31 Aug 2004 20:46:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 31 Aug 2004 20:46:54 -0000 Received: (qmail 31908 invoked from network); 31 Aug 2004 20:46:54 -0000 Received: from madrid10.amenworld.com (62.193.203.32) by a.mx.sunsite.dk with SMTP; 31 Aug 2004 20:46:52 -0000 Received: from DervishD.pleyades.net (212.Red-80-35-44.pooles.rima-tde.net [80.35.44.212]) by madrid10.amenworld.com (8.10.2/8.10.2) with ESMTP id i7VKkg121463; Tue, 31 Aug 2004 22:46:42 +0200 Received: from disposable1@telefonica.net by DervishD.pleyades.net with local (Exim MTA 2.05) id <1C2FK1-0002Cc-00>; Tue, 31 Aug 2004 22:33:41 +0200 Date: Tue, 31 Aug 2004 22:33:41 +0200 From: DervishD To: Dan Nelson Cc: James William Pye , zsh-workers@sunsite.dk Subject: Re: [bug?] test adf -ge 0 Message-ID: <20040831203341.GA8463@DervishD> Mail-Followup-To: Dan Nelson , James William Pye , zsh-workers@sunsite.dk References: <1093976533.69019.10.camel@localhost> <20040831191131.GG33896@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040831191131.GG33896@dan.emsphone.com> User-Agent: Mutt/1.4.2.1i Organization: Pleyades X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.0 required=6.0 tests=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 Hi Dan & James :) * Dan Nelson 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/