GNU bug report logs - #48171
Possible Bug in comm 8.32

Previous Next

Package: coreutils;

Reported by: Jon Forrest <nobozo <at> gmail.com>

Date: Sun, 2 May 2021 20:45:02 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

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 48171 in the body.
You can then email your comments to 48171 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 bug-coreutils <at> gnu.org:
bug#48171; Package coreutils. (Sun, 02 May 2021 20:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jon Forrest <nobozo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sun, 02 May 2021 20:45:02 GMT) Full text and rfc822 format available.

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

From: Jon Forrest <nobozo <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Possible Bug in comm 8.32
Date: Sun, 2 May 2021 11:54:48 -0700
[Message part 1 (text/plain, inline)]
This is on Fedora 34 server.

$ uname -a
Linux fedora 5.11.16-300.fc34.x86_64 #1 SMP Wed Apr 21 13:18:33 UTC 2021 
x86_64 x86_64 x86_64 GNU/Linux

$ comm --version
comm (GNU coreutils) 8.32

Consider the 2 attached files f1.txt and f2.txt. They're already sorted.

$ comm -12 f1.txt f2.txt
1O55
1O56

This means that 1055 and 1056 are in both files. However, this isn't
true.

$ fgrep 1055 f1.txt f2.txt
f1.txt:1055
$ fgrep 1056 f1.txt f2.txt
f1.txt:1056

Note that these lines are only in f1.txt. This looks like
a bug.

Please advise.

Cordially,
Jon Forrest
[f1.txt (text/plain, attachment)]
[f2.txt (text/plain, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#48171; Package coreutils. (Sun, 02 May 2021 21:15:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: Jon Forrest <nobozo <at> gmail.com>, 48171 <at> debbugs.gnu.org
Subject: Re: bug#48171: Possible Bug in comm 8.32
Date: Sun, 2 May 2021 22:14:09 +0100
tag 48171 notabug
close 48171
stop

On 02/05/2021 19:54, Jon Forrest wrote:
> This is on Fedora 34 server.
> 
> $ uname -a
> Linux fedora 5.11.16-300.fc34.x86_64 #1 SMP Wed Apr 21 13:18:33 UTC 2021
> x86_64 x86_64 x86_64 GNU/Linux
> 
> $ comm --version
> comm (GNU coreutils) 8.32
> 
> Consider the 2 attached files f1.txt and f2.txt. They're already sorted.
> 
> $ comm -12 f1.txt f2.txt
> 1O55
> 1O56
> 
> This means that 1055 and 1056 are in both files. However, this isn't
> true.
> 
> $ fgrep 1055 f1.txt f2.txt
> f1.txt:1055
> $ fgrep 1056 f1.txt f2.txt
> f1.txt:1056
> 
> Note that these lines are only in f1.txt. This looks like
> a bug.
> 
> Please advise.

Your input data looks incorrect.
There is a mixup between the letter O and digit 0.
The following should be instructive:

$ grep 1O5[56] f[12].txt
f1.txt:1O55
f1.txt:1O56
f2.txt:1O55
f2.txt:1O56

cheers,
Pádraig




Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sun, 02 May 2021 21:15:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 48171 <at> debbugs.gnu.org and Jon Forrest <nobozo <at> gmail.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sun, 02 May 2021 21:15:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#48171; Package coreutils. (Mon, 03 May 2021 05:04:03 GMT) Full text and rfc822 format available.

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

From: Jon Forrest <nobozo <at> gmail.com>
To: Pádraig Brady <P <at> draigBrady.com>, 48171 <at> debbugs.gnu.org
Subject: Re: bug#48171: Possible Bug in comm 8.32
Date: Sun, 2 May 2021 16:29:26 -0700

On 5/2/2021 2:14 PM, Pádraig Brady wrote:

> Your input data looks incorrect.
> There is a mixup between the letter O and digit 0.
> The following should be instructive:
> 
> $ grep 1O5[56] f[12].txt
> f1.txt:1O55
> f1.txt:1O56
> f2.txt:1O55
> f2.txt:1O56

Indeed.

Sorry for the bother. I should have noticed this.

Jon





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

This bug report was last modified 2 years and 327 days ago.

Previous Next


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