Brian J. Murrell wrote: > On Thu, 2007-12-20 at 11:35 -0800, Tom Eastep wrote: >> I must be missing something -- you specifically tested that number in a "[ >> -eq ]". So what does this do? > > Aw crap. No you are not missing something I am. I did all of my > previous tests in a bash. I forgot to specifically change my > interactive shell to the busybox /bin/sh. My apologies. > > Here's your last two tests in the busybox /bin/sh: > > # foo=2953838592 > # foo=$((- $foo )) > # echo $foo > -2953838592 > # foo=$((- $foo )) > # echo $foo > 2953838592 > # > # [ 16777216 -eq 2953838592 ] || echo foo > sh: 2953838592: out of range > foo > >> foo=2953838592 >> >> [ $foo -eq 0 ] >> >> If that gives you the 'out of range' error, then try this: >> >> eval [ $foo -eq 0 ] > > # foo=2953838592 > # [ $foo -eq 0 ] > sh: 2953838592: out of range > # eval [ $foo -eq 0 ] > sh: 2953838592: out of range
What does "[ $foo = 0 ]" do? -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users