[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Latest kernel shown at last
From: |
Robert Millan |
Subject: |
Re: Latest kernel shown at last |
Date: |
Thu, 28 Feb 2008 11:41:14 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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?
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)