On Tue, Nov 11, 2008 at 12:54:15PM -0800, NewDeb wrote: > When I try to compare 3.102 to 3.34, I get an incorrect answer as follows. > dpkg --compare-versions 3.102 ge 3.34; echo $? > 0
> However, if I specify 3.34 as 3.340, I get the correct answer as follows: > dpkg --compare-versions 3.102 ge 3.340; echo $? > 1 In version notation, .34 and .340 are not the same thing; you need to think of them as separate numbers (so you're comparing 102 with 34, and 102 with 340). Cheers, Paul -- Paul Dwerryhouse | PGP Key ID: 0x6B91B584 ======================================================================== http://linoleum.leapster.org/ - Linux Programming Resources -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]