bug-textutils
[Top][All Lists]
Advanced

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

Bug in sort


From: Paddy Doyle \(Sysadmin\)
Subject: Bug in sort
Date: Mon, 11 Jun 2001 12:57:15 +0100 (IST)

Hi,
There seems to be a bug in 'sort' from textutils-2.0 in how it treats
non-alphanumeric characters: it ignores them by default when sorting. I
know there are the -d and -i options to restrict sorting to alphanumeric
characters, but '-d' seems to be turned on by default.

Here's an example to illustrate:

~:> cat sortfile
index.12html
index18html
index16html
index.10html
index.11html
index10html
index-11html
index/10html
index10html
index12html
index17html
index11html
~:> sort sortfileindex/10html
index.10html
index10html
index10html
index-11html
index.11html
index11html
index.12html
index12html
index16html
index17html
index18html


Basically it performs the sort based only on the 'index[0-9][0-9]'
pattern, not taking the ``.-/'' etc into account.

I have tried this both with the RPM of textutils (textutils-2.0-2) and the
source (textutils-2.0) version.

Thanks in advance,
Paddy

--
Paddy Doyle
Sysadmin, UCD Netsoc




reply via email to

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