On Tue, Dec 15, 2009 at 20:18, john blair <[email protected]>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? > > > > > > > > What version of sort are you using? (sort --version) What is your locale setting? In ASCII, decimal digits are before alphabetical letters. Why did you expect the 'e' to come before '2' and '6'? Steve P.S. You don't need to cat a file and pipe the output to sort. Sort can open files as input.
