GNU bug report logs - #12019
join command - wrong column moved to start of line with the -v2 option

Previous Next

Package: coreutils;

Reported by: Jean-Pierre Tosoni <jpt.7196 <at> gmail.com>

Date: Sat, 21 Jul 2012 21:17:06 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jean-Pierre Tosoni <jpt.7196 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: join command - wrong column moved to start of line with the -v2 option
Date: Sat, 21 Jul 2012 20:20:38 +0200
[Message part 1 (text/plain, inline)]
Hello Maintainer,

I am using join v8.5 from debian squeeze.

When using the -v2 option with different join fields in files 1 and 2, the
join field which gets moved to the beginning of the result lines is the one
identified by the -1 option, not the one identified by the -2 option.


Here are my test files:
==== file a ====
axx111  keyX    axx222
ayy111  keyY    ayy222

==== file b ====
xxx111  xxx222  keyX    xxx333
zzz111  zzz222  keyZ    zzz333

now, the command:
   join   -v 2   -1 2   -2 3   a   b
produces
==== wrong output ====
zzz222 zzz111 keyZ zzz333

instead of
==== expected output ====
keyZ zzz111 zzz222 zzz333


The two following other commands work as expected:
   join    -v 1    -1 2    -2 3    a b
   join    -1 2    -2 3    a b

I did not find this problem in your database - or am I mistaken ?
Best regards,

-- 
Jean-Pierre Tosoni
[Message part 2 (text/html, inline)]

This bug report was last modified 13 years and 25 days ago.

Previous Next


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