GNU bug report logs - #9094
BUG found in comm

Previous Next

Package: coreutils;

Reported by: Raphael Borchert <raphael.borchert <at> porsche.de>

Date: Fri, 15 Jul 2011 16:21:03 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9094 in the body.
You can then email your comments to 9094 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org:
bug#9094; Package coreutils. (Fri, 15 Jul 2011 16:21:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Borchert <raphael.borchert <at> porsche.de>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 15 Jul 2011 16:21:23 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Raphael Borchert <raphael.borchert <at> porsche.de>
To: bug-coreutils <at> gnu.org
Subject: BUG found in comm
Date: Fri, 15 Jul 2011 17:25:17 +0200
[Message part 1 (text/plain, inline)]
Hi,
I found a bug in "comm" 
If I use "comm -1 -3 MNF.lst sketch.lst", I get the number "104014", but 
both files contain the number   "104014"

here my terminal:
[p308663 <at> cexlx111 SKETCH]$ comm -1 -3 MNF.lst sketch.lst | head -20
11250
104014
104079
104112
104122
104131
104150
104160
115839
115844
115847
115966
115978
119842
119983
120406
120407
120513
120517
120521
[p308663 <at> cexlx111 SKETCH]$ grep 104014 MNF.lst sketch.lst
MNF.lst:104014
MNF.lst:1040140
MNF.lst:1040141
MNF.lst:1040142
MNF.lst:1040143
MNF.lst:1040144
MNF.lst:1040145
MNF.lst:1040146
MNF.lst:1040147
MNF.lst:1040148
MNF.lst:1040149
MNF.lst:1104014
sketch.lst:104014
[p308663 <at> cexlx111 SKETCH]$ 

testfiles:



mit freundlichen Grüßen

Raphael Borchert

EGA4
Telefon:  +49 (0) 711 / 911-89072
Fax:      +49 (0) 711 / 911-82006
E-Mail:   Raphael.Borchert <at> porsche.de


Dr. Ing. h.c. F.  Porsche Aktiengesellschaft
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart HRB-Nr. 730623
Vorsitzender des Aufsichtsrats: Dr. Wolfgang Porsche
Vorstand: Matthias Müller, Vorsitzender
Thomas Edig, stv. Vorsitzender
Wolfgang Hatz, Wolfgang Leimgruber, Bernhard Maier, Lutz Meschke, Uwe-Karsten Städter

Die vorgenannten Angaben werden jeder E-Mail automatisch hinzugefügt. Dies ist kein Anerkenntnis, 
dass es sich beim Inhalt dieser E-Mail um eine rechtsverbindliche Erklärung der Porsche AG handelt. 
Erklärungen, die die Porsche AG verpflichten, bedürfen jeweils der Unterschrift durch zwei zeichnungs-
berechtigte Personen der AG.
[Message part 2 (text/html, inline)]
[sketch.lst (application/octet-stream, attachment)]
[MNF.lst (application/octet-stream, attachment)]

Reply sent to Jim Meyering <jim <at> meyering.net>:
You have taken responsibility. (Sun, 24 Jul 2011 14:11:02 GMT) Full text and rfc822 format available.

Notification sent to Raphael Borchert <raphael.borchert <at> porsche.de>:
bug acknowledged by developer. (Sun, 24 Jul 2011 14:11:13 GMT) Full text and rfc822 format available.

Message #10 received at 9094-done <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: 9094-done <at> debbugs.gnu.org
Cc: Raphael Borchert <raphael.borchert <at> porsche.de>
Subject: Re: BUG found in comm
Date: Sun, 24 Jul 2011 16:10:41 +0200
> I found a bug in "comm"
> If I use "comm -1 -3 MNF.lst sketch.lst", I get the number "104014", but
> both files contain the number   "104014"
>
> here my terminal:
> [p308663 <at> cexlx111 SKETCH]$ comm -1 -3 MNF.lst sketch.lst | head -20
> 11250
> 104014
> 104079

Thank you for the report.  However, that is not a bug.
The problem is that your input is not sorted, and comm
requires that each input stream be sorted.

Using the --check-order option shows the offending line:

    $ comm --check-order -1 -3 MNF.lst sketch.lst
    11250
    comm: file 2 is not in sorted order
    [Exit 1]

I've closed this "issue".




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 22 Aug 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.