bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Addendum: Possible Bug in comm ?


From: Joseph A. Wiencko, Jr.
Subject: Addendum: Possible Bug in comm ?
Date: Wed, 13 Sep 2006 23:05:33 -0400
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Hello again,

The expected behavior (instead of the anomalous behavior) occurs in a bash script when the following statement is included:

export LC_ALL=POSIX

But why would the other behavior ever be desired, even if LC_ALL=POSIX is not specified?

Thanks.

--Joseph A. Wiencko, Jr.
address@hidden


-------- Original Message --------
Subject:        Possible Bug in comm ?
Date:   Wed, 13 Sep 2006 22:46:06 -0400
From:   Joseph A. Wiencko, Jr. <address@hidden>
To:     address@hidden



Hello,

For a file called "a" with the following contents (two lines of one character each):

4
_


and a file called "b" with the following contents (two lines of one character each):

5
_


I am observing the following:

comm -23 a b
4
_

comm -13 a b
5
_

comm -12 a b



But I would have expected:

comm -23 a b
4

comm -13 a b
5

comm -12 a b
_


Why does comm do this?

(I am observing this behavior in larger, more complex files where the resulting behavior makes a difference. For expediency, I have pared things down to show the same behavior in this simple example.)


comm (coreutils) 5.2.1
Linux 2.6.9-22.0.1.ELsmp #1 SMP Thu Oct 27 14:49:37 CDT 2005 x86_64 x86_64 x86_64 GNU/Linux
Report bugs to <address@hidden>


Thank you!

-- Joseph A. Wiencko, Jr.
address@hidden







reply via email to

[Prev in Thread] Current Thread [Next in Thread]