emacs-bug-tracker
[Top][All Lists]
Advanced

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

[Emacs-bug-tracker] bug#8040: closed (join 5.97 bug)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#8040: closed (join 5.97 bug)
Date: Tue, 15 Feb 2011 00:09:02 +0000

Your message dated Tue, 15 Feb 2011 00:13:52 +0000
with message-id <address@hidden>
and subject line Re: bug#8040: join 5.97 bug
has caused the GNU bug report #8040,
regarding join 5.97 bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
8040: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8040
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

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