GNU bug report logs - #19533
comm does not detect common lines -- Mac OS X 10.9.5

Previous Next

Package: coreutils;

Reported by: Ali Khanafer <ali.khanafer <at> gmail.com>

Date: Wed, 7 Jan 2015 21:36:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19533: closed (comm does not detect common lines -- Mac OS X
 10.9.5)
Date: Wed, 07 Jan 2015 22:13:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 07 Jan 2015 15:12:26 -0700
with message-id <54ADAF4A.7080802 <at> redhat.com>
and subject line Re: bug#19533: comm does not detect common lines -- Mac OS X 10.9.5
has caused the debbugs.gnu.org bug report #19533,
regarding comm does not detect common lines -- Mac OS X 10.9.5
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19533: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19533
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ali Khanafer <ali.khanafer <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: comm does not detect common lines -- Mac OS X 10.9.5
Date: Wed, 7 Jan 2015 16:23:25 -0500
[Message part 3 (text/plain, inline)]
Hello,

Thanks for this amazing tool.

I tried comm on test1.txt and test2.txt. The output I got is in
comm-test.txt. Comm found 11 common lines and missed 6 other lines.

Could you please explain why this is happening?

Thank you in advance.

Best,
Ali
[Message part 4 (text/html, inline)]
[comm-test (application/octet-stream, attachment)]
[test2 (application/octet-stream, attachment)]
[test1 (application/octet-stream, attachment)]
[Message part 8 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: Ali Khanafer <ali.khanafer <at> gmail.com>, 19533-done <at> debbugs.gnu.org
Subject: Re: bug#19533: comm does not detect common lines -- Mac OS X 10.9.5
Date: Wed, 07 Jan 2015 15:12:26 -0700
[Message part 9 (text/plain, inline)]
tag 19533 notabug
thanks

On 01/07/2015 02:23 PM, Ali Khanafer wrote:
> Hello,
> 
> Thanks for this amazing tool.
> 
> I tried comm on test1.txt and test2.txt. The output I got is in
> comm-test.txt. Comm found 11 common lines and missed 6 other lines.
> 
> Could you please explain why this is happening?

Using a newer version of coreutils would tell you why:

$ comm test1 test2
		1266281
		11348282
		15431856
16264803
		17248121
		17384099
18911432
	20513956
		21436960
		21634600
		24129206
		33773592
		37710752
		44903491
comm: file 1 is not in sorted order
103652294
103865085
126302054
198494684
208442526
253536357
1002513128

	46959037
	51274038
comm: file 2 is not in sorted order
	103652294
	103865085
	126302054
	208442526
	253536357
	1002513128

Proper use of comm requires that you pre-sort both input files.  As
such, this is not a bug in comm, so I'm closing this bug.  However, feel
free to add further comments or questions.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 10 years and 141 days ago.

Previous Next


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