Brian J. Murrell wrote:
> On Thu, 2007-12-20 at 12:58 -0800, Tom Eastep wrote:
>> Yes -- but that function can blow up the first time that it tries to touch
>> its arguments in a numeric context. So it would have to break them into two
>> smaller integers without using arithmetic and without the benefit of
>> ${foo:a:b} (these toy shells don't support that form of expansion).
>
> How about:
>
> # foo=1.2.3.4
> # echo ${foo#*.*.}
> 3.4
> # echo ${foo%.*.*}
> 1.2
>
>> That will be ugly and slow.
>
> Not the above. Or am I missing something?
> Please have a look at ip_range() and ip_range_explicit() in lib.base and try to envision recoding them to use that technique. Maybe you want to spend your Christmas vacation that way -- I don't. Especially when I can't test anything without exchanging emails with you. Yet another question: what does "/bin/sh /sbin/shorewall-lite ipdecimal 2953838592" 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 [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
