GNU bug report logs - #12847
comm wrong output

Previous Next

Package: coreutils;

Reported by: gregrwm <backuppc-users <at> whitleymott.net>

Date: Fri, 9 Nov 2012 22:25: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 12847 in the body.
You can then email your comments to 12847 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#12847; Package coreutils. (Fri, 09 Nov 2012 22:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gregrwm <backuppc-users <at> whitleymott.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 09 Nov 2012 22:25:02 GMT) Full text and rfc822 format available.

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

From: gregrwm <backuppc-users <at> whitleymott.net>
To: bug-coreutils <at> gnu.org
Subject: comm wrong output
Date: Fri, 9 Nov 2012 15:54:12 -0600
[Message part 1 (text/plain, inline)]
coreutils       8.13-3.2ubuntu2 (quantal)

using the attached files:
$  LC_ALL=C sort rqb.2012-11-07. >/tmp/pC   #ensure inputs are sorted
$  LC_ALL=C sort a0>/tmp/qC
$  LC_ALL=C comm -2 /tmp/[pq]C>/tmp/-2
$  LC_ALL=C comm -23 /tmp/[pq]C>/tmp/-23

the 2 comm commands produce identical output!
oughtn't the latter command only show lines unique to FILE1?
[Message part 2 (text/html, inline)]
[rqb.2012-11-07. (application/octet-stream, attachment)]
[a0 (application/octet-stream, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#12847; Package coreutils. (Fri, 09 Nov 2012 23:15:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: gregrwm <backuppc-users <at> whitleymott.net>
Cc: 12847 <at> debbugs.gnu.org
Subject: Re: bug#12847: comm wrong output
Date: Sat, 10 Nov 2012 00:13:59 +0100
gregrwm <backuppc-users <at> whitleymott.net> writes:

> coreutils       8.13-3.2ubuntu2 (quantal)
>
> using the attached files:
> $  LC_ALL=C sort rqb.2012-11-07. >/tmp/pC   #ensure inputs are sorted
> $  LC_ALL=C sort a0>/tmp/qC
> $  LC_ALL=C comm -2 /tmp/[pq]C>/tmp/-2
> $  LC_ALL=C comm -23 /tmp/[pq]C>/tmp/-23
>
> the 2 comm commands produce identical output!
> oughtn't the latter command only show lines unique to FILE1?

Since the files have nothing in common, -3 has no effect.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-coreutils <at> gnu.org:
bug#12847; Package coreutils. (Sat, 10 Nov 2012 00:39:02 GMT) Full text and rfc822 format available.

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

From: gregrwm <backuppc-users <at> whitleymott.net>
To: Alan Curry <pacman-cu <at> kosh.dhis.org>
Cc: 12847 <at> debbugs.gnu.org
Subject: Re: bug#12847: comm wrong output
Date: Fri, 9 Nov 2012 18:37:28 -0600
[Message part 1 (text/plain, inline)]
>
> Try with sort ... | expand > /tmp/...
>

aha.
i see i&it were thrown by different style whitespace.
thank you.
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sat, 10 Nov 2012 00:57:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 12847 <at> debbugs.gnu.org and gregrwm <backuppc-users <at> whitleymott.net> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Sat, 10 Nov 2012 00:57:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 280 days ago.

Previous Next


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