GNU bug report logs -
#9780
sort -u throws out non-duplicates
Previous Next
Reported by: Bernhard Rosenkraenzer <bero <at> bero.eu>
Date: Tue, 18 Oct 2011 01:04:02 UTC
Severity: normal
Tags: moreinfo
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 20 Aug 2012 21:20:23 +0200
with message-id <87ipcdl6a0.fsf <at> rho.meyering.net>
and subject line Re: bug#9780: sort -u throws out non-duplicates
has caused the debbugs.gnu.org bug report #9780,
regarding sort -u throws out non-duplicates
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
9780: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9780
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[bero <at> matterhorn tmp]$ wget http://bero.eu/java-source-list
[...]
[bero <at> 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 <at> 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 <at> 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
[Message part 3 (message/rfc822, inline)]
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.
This bug report was last modified 12 years and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.