On Thu, Dec 20, 2007 at 03:03:24PM -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(), ...

I have on several occasions thought that the Bourne shell has been
designed to make arithmetic support horrible in an attempt to disuade
people from writing complex applications in shell.

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