bug-textutils
[Top][All Lists]
Advanced

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

Re: Bug in sort


From: Paddy Doyle \(Sysadmin\)
Subject: Re: Bug in sort
Date: Mon, 11 Jun 2001 13:38:52 +0100 (IST)

Hi,
Sorry, I don't think I made my point too clear in my last post.
The output that I would have expected would have been something like this:

index.10html
index.11html
index.12html
index-11html
index10html
index11html
index12html
....

Ie, for the strings containing '.' to be grouped together, and so on.

Thanks again,
Paddy

--
Paddy Doyle
Sysadmin, UCD Netsoc

On Mon, 11 Jun 2001, Paddy Doyle (Sysadmin) wrote:

> 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]