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? b.
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