bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sort -nu: bug or feature?


From: Stepan Kasal
Subject: Re: sort -nu: bug or feature?
Date: Fri, 10 Sep 2004 07:49:26 +0200
User-agent: Mutt/1.4.1i

Hi,

On Thu, Sep 09, 2004 at 04:04:14PM -0700, Paul Eggert wrote:
> The doc was a bit messy so I installed the following more-ambitious
> patch instead.

that's ver nice solution.  I had the same feeling that the text should be
clean up, but hadn't came to the right idea.

When sort is invoked with no global option, whole lines are compared as
text.  The old docs also called this ``last-resort comparison'', while
you simply say that the whole line is the key.  It is much clearer now.

(The code is optimized, so that if the ``last-resort comparison'' would
perform the same thing as the key comparison, the lines are compared only
once.  But this should not clutter up the docs.)

Thanks,
        Stepan




reply via email to

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