On Thu, 2007-12-20 at 15:03 -0800, Tom Eastep wrote:
> Hence, the proposed function to compare two addresses:
> 
> addr_comp() {
>     test $(bc <<EOF
> $1 > $2
> EOF
> ) -eq 1
> 
> }
> 
> That will sure make your parents proud. To compare two numbers, you only
> have to fork(), pipe(), exec(), ...
> 
> Brian: If you copy/paste the above into your BusyBox shell, do you get these
> results?
> 
> $ addr_comp 2953838592 1107296256 && echo Yes || echo No
> Yes
> $ addr_comp 1107296256 2953838592 && echo Yes || echo No
> No
> $

Sorry about the delay.  Seasonal obligations.  :-)

Yes, I can confirm the above works on my openwrt platform once I
installed bc.

b.

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
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

Reply via email to