[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in join
From: |
Cezary Sobaniec |
Subject: |
Bug in join |
Date: |
20 May 2003 22:36:08 +0200 |
Hi folks,
Maybe I am wrong but I think I have found a bug in "join" tool.
Consider the following example:
I have two files, first is F1:
a2:x
second is F2:
a:x
a2:x
Both are sorted using sort -t: -k 1,1. LC_ALL is set to POSIX. When
I run join I get nothing:
$ join -t: F1 F2
When I set LC_ALL to en_US I get:
a2:x:x
what I was expecting.
Question: why join sorts the lines in a different order when compared
to sort with the same settings (field separator, LC_COLLATE)?
This example works fine when the field separator is set to space:
$ cat F1
a2 x
$ cat F2
a x
a2 x
$ join -k 1,1 F1 F2
a2 x x
--------------------------------------------------------------------------
My configuration:
join (coreutils) 4.5.8
SuSE Linux 8.2, 2.4.20-4GB i686
--
("`-''-/").___..--''"`-._ Cezary Sobaniec
`6_ 6 ) `-. ( ).`-.__.') Institute of Computing Science
(_Y_.)' ._ ) `._ `. ``-..-' Poznan University of Technology
_..`--'_..-_/ /--'_.' ,' address@hidden
(il).-'' (li).' ((!.-' tel. (+48 61) 665-28-09
- Bug in join,
Cezary Sobaniec <=