Bug 193127 - join command change of behavior.
Summary: join command change of behavior.
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils   
(Show other bugs)
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
Depends On:
Blocks: 176344
TreeView+ depends on / blocked
Reported: 2006-05-25 15:21 UTC by Jose Plans
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHBA-2007-0213
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-01 22:54:02 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0213 normal SHIPPED_LIVE coreutils bug fix update 2007-04-28 17:09:27 UTC

Description Jose Plans 2006-05-25 15:21:12 UTC
Hi Tim,

 The join command present in coreutils-5.2.1-31.2 [RHEL4] seems to have some
troubles when using some options to join fields using options -j and -o. This is
fixed upstream in release : 1.136.
 The customer claims this was working perfectly on old Red Hat Linux releases,
and works again on Fedora Core 5.
 The following commands failed in join < upstream release: .


 $ join -a1 -e0 -j1 1 -j2 1 -o 1.1 2.2 FILE_A FILE_B
 join: too many non-option arguments
 Try `join --help' for more information.

 $ join -a1 -e"." -j1 1 -j2 2 -o 1.1 2.2 1.3 2.4 FILE_A FILE_B
 join: too many non-option arguments
 Try `join --help' for more information.

 $ rpm -qf /usr/bin/join 

In Fedora core 5:
  $ join -a1 -e0 -j1 1 -j2 1 -o 1.1 2.2 a b
  1 0
  $ join -a1 -e"." -j1 1 -j2 2 -o 1.1 2.2 1.3 2.4 a b
  1 . . .

  $ rpm -qf /usr/bin/join

the customer also reported the join command patched against the whole upstream
revision does solve the problem, however there are some parts we could discard,


Comment 1 RHEL Product and Program Management 2006-08-18 15:48:41 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update

Comment 3 Tim Waugh 2006-09-12 09:46:48 UTC
Jose: please provide the input files 'a' and 'b' that gave the expected output,
in order for a test case to be made for this bug.  Thanks.

Comment 5 Jose Plans 2006-09-12 09:57:28 UTC
This is what I used for the test case:
[root@localhost join]# join -a1 -e0 -j1 1 -j2 1 -o 1.1 2.2 a.txt b.txt
join: too many non-option arguments
Try `join --help' for more information.
[root@localhost join]# cat a.txt
a 12312
[root@localhost join]# cat b.txt
b 134912

Comment 6 Tim Waugh 2006-09-12 10:02:03 UTC
Thanks.  And the expected output for (A) is

a 0

and for (B) is

a . . .

Is that correct?

Comment 7 Jose Plans 2006-09-12 10:06:06 UTC
This is correct, the outputs are indeed :
[jmp@jplans join]$ join -a1 -e0 -j1 1 -j2 1 -o 1.1 2.2 a.txt b.txt
a 0
[jmp@jplans join]$ join -a1 -e"." -j1 1 -j2 2 -o 1.1 2.2 1.3 2.4 a.txt b.txt
a . . .

Comment 12 Red Hat Bugzilla 2007-05-01 22:54:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Comment 13 Issue Tracker 2007-06-14 20:42:39 UTC
Customer advised of errata release.  Closing this out.

Internal Status set to 'Resolved'
Status set to: Closed by Tech
Resolution set to: 'Closed by Client'

This event sent from IssueTracker by ctatman 
 issue 92458

Note You need to log in before you can comment on or make changes to this bug.