Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Ain't those '\' magic ;-) > > Indeed... > > Angus> However, I'm convinced that the configure file is wrong too. > Angus> Why are you using '=' (a string test) when you should be > using Angus> -eq (an integer test)? > > Angus> -if test ! $num = 0 ; then +if test $num -ne 0 ; then > > I can do that too, but I cannot see cases where the test will fail. > Is -ne 100% portable? > > JMarc
Shrug. That I cannot answer. It is in my O'Reilly book and works on both the linux and tru64 machines I have access to... On the Dec running Tru64 unix $ man test number1 -eq number2 TRUE if the integers number1 and number2 are algebraically equal. Any of the comparisons -ne, -gt, -ge, -lt, and -le can be used in place of -eq. On Linux: $ man test INTEGER1 -ne INTEGER2 INTEGER1 is not equal to INTEGER2 -- Angus