--- Begin Message ---
Subject: |
join 5.97 bug |
Date: |
Mon, 14 Feb 2011 18:45:01 -0500 |
File a:
10 A
1 B
File b:
1
$ join b a
<nada>
$ join -v 1 d c
1
files a & b are both sorted lexicographically (according to 'sort', anyway).
The problem is that the join lexicographic '<' operator disagrees with sort's.
Sorry if this bug has been found like a thousand times before, couldn't find it
via 30s of googling.
Brannon
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#8040: join 5.97 bug |
Date: |
Tue, 15 Feb 2011 00:13:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
On 14/02/11 23:45, Batson, Brannon wrote:
>
> File a:
> 10 A
> 1 B
>
> File b:
> 1
>
> $ join b a
> <nada>
>
> $ join -v 1 d c
> 1
>
> files a & b are both sorted lexicographically (according to 'sort', anyway).
> The problem is that the join lexicographic '<' operator disagrees with sort's.
>
> Sorry if this bug has been found like a thousand times before, couldn't find
> it via 30s of googling.
Newer versions of join are more helpful.
$ join b a
join: file 2 is not in sorted order
$ join b <(sort -k 1b,1 a)
1 B
cheers,
Pádraig
--- End Message ---