Subject: bug#9780: closed (Re: bug#9780: sort -u throws out non-duplicates)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 20 Aug 2012 19:21:02 +0000

Your bug report

#9780: sort -u throws out non-duplicates

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
9780: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9780
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#9780: sort -u throws out non-duplicates
From: Jim Meyering <[email-masked]>
To: Paul Eggert <[email-masked]>
Cc: [email-masked], Rasmus Borup Hansen <[email-masked]>
Date: Mon, 20 Aug 2012 21:20:23 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Paul Eggert wrote:
> On 08/17/2012 01:31 PM, Jim Meyering wrote:
>> So we definitely have a *second* bug here.
>
> Yes, I noticed.  It definitely counts as a double-ouch.
> I'm glad the bug report prompted us to read this code
> more carefully.
>
> My latest patch should fix both bugs.

Thanks again.
Closing this bug, finally.

Subject: sort -u throws out non-duplicates
From: Bernhard Rosenkraenzer <[email-masked]>
To: <[email-masked]>
Date: Tue, 18 Oct 2011 01:59:12 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

[bero@matterhorn tmp]$ wget http://bero.eu/java-source-list
[...]
[bero@matterhorn tmp]$ tr ' ' '\n' <java-source-list |sort |grep 
X509Certificate
libcore/luni/src/main/java/java/security/cert/X509Certificate.java
libcore/luni/src/main/java/javax/security/cert/X509Certificate.java

This is correct...

[bero@matterhorn tmp]$ tr ' ' '\n' <java-source-list |sort -u |grep 
X509Certificate
libcore/luni/src/main/java/javax/security/cert/X509Certificate.java

Note the missing .../java/java/security/cert/X509Certificate.java

[bero@matterhorn tmp]$ tr ' ' '\n' <java-source-list |sort |uniq |grep 
X509Certificate
libcore/luni/src/main/java/java/security/cert/X509Certificate.java
libcore/luni/src/main/java/javax/security/cert/X509Certificate.java

This is correct

The problem occurs (at least) with sort from coreutils 8.12, 8.13 and 
8.14.

ttyl
bero