On Thursday 28 February 2008 11:41, Robert Millan wrote: > On Thu, Feb 28, 2008 at 02:10:18AM -0500, Pavel Roskin wrote: > > >This is on grub2 (1.96+20080203-1ubuntu1) dunno whether its a bug > > >which should be filed in grub2 here or something which got messed up > > >while packaging it for ubuntu. Any help/guidance would be nice. > > > > Please note that 1 is less than 5. The Debian revision is compared as > > string, not as number. > > > > Correct comparing of Linux versions is very hard. At very least, all > > sequences of digits should be compared numerically. I don't think GNU > > sort can do that. And then there is an issue with comparing "-pre", > > "-rc", "-test", "-mm" and other suffixes. And the separators have > > different meanings - think of comparing 2.6.24-10 and 2.6.24.2-1. > > > > I was thinking of fixing it, but I'm not sure it can even be done in > > shell script. We may need to write a helper in C just for that, or > > resort to bashisms. > > Okuji doesn't like bash scripts, but I really don't see what's the problem > with requiring bash just like you could require perl or python. Okuji, > would you reconsider about this?
What feature of bash do you need to use? Okuji _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel