Re: process result code in if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Gary V. Vaughan" <gary@xxxxxxx> writes:
> On 7 Jun 2013, at 08:41, Miles Bader <miles@xxxxxxx> wrote:
>> Wait, why can't you use "test $x -gt 0"...?
>
> You mean "test 0 -lt $x", otherwise if x starts with a hyphen (e.g -1)
> things will go awry!

I dunno, test here (both coreutils test, and the bash builtin) seems
to handle negative numbers just fine using "test $x -gt 0" ...

[I suppose maybe there are broken versions of test out there, the
usual issue with just about anything in autoconf... typically Sun... >< ]

-miles

-- 
`The suburb is an obsolete and contradictory form of human settlement'

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux