bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible bug in sort -V


From: john blair
Subject: Re: Possible bug in sort -V
Date: Wed, 16 Dec 2009 12:59:16 -0800 (PST)

Thanks for the replies.
Kamil, you are right. It works if I remove x86_64.rpm from the string.

--- On Wed, 12/16/09, Kamil Dudka <address@hidden> wrote:

> From: Kamil Dudka <address@hidden>
> Subject: Re: Possible bug in sort -V
> To: "john blair" <address@hidden>
> Cc: address@hidden
> Date: Wednesday, December 16, 2009, 6:02 PM
> On Wed December 16 2009 02:18:58 john
> blair wrote:
> > cat a | /build/toolchain/lin32/coreutils-8.2/bin/sort
> -V
> > kernel-2.6.18-164.2.1.el5.x86_64.rpm
> > kernel-2.6.18-164.6.1.el5.x86_64.rpm
> > kernel-2.6.18-164.el5.x86_64.rpm
> > 
> > The result should be
> > kernel-2.6.18-164.el5.x86_64.rpm
> > kernel-2.6.18-164.2.1.el5.x86_64.rpm
> > kernel-2.6.18-164.6.1.el5.x86_64.rpm
> > 
> > Is it a bug is sort -V?
> 
> I agree the behavior is pretty awkward. Nevertheless the
> behavior
> is well documented:
> 
> http://www.gnu.org/software/coreutils/manual/html_node/Details-about-version-sort.html
> 
> The "bug" is triggered by the underscore in "x86_64". It's
> not treated as file
> suffix in that case. However it works fairly well when you
> replace "x86_64" by
> "i686".
> 
> Kamil
> 
> 
> 


      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]