join: add --header option to always output the first line
authorAssaf Gordon <assafgordon@gmail.com>
Fri, 20 Nov 2009 15:24:07 +0000 (15:24 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Feb 2010 13:57:42 +0000 (13:57 +0000)
commit819aa9eba741c36bb522cbc2c7f10e24d190f945
tree86bafe4a6dbe2dbc2ca813bbb349fe49caaf38cb
parent86914603b58b666e4c0f8442ba46e89190f381e2
join: add --header option to always output the first line

This essentially allows one to use --check-order with headings.
Note join without --check-order will already handle the common case
where headings do match in each file, however using --check-order will fail
often when the header sorts after the first line of data.

Note also that this will join header lines from each file even if
they don't match, with headings from the first file being used.

* NEWS: Mention the new option.
* doc/coreutils.texi (join invocation): Describe the new option.
* src/join.c (usage): Likewise.
(join): Join the header lines unconditionally.
* tests/misc/join: Add 5 new tests.
NEWS
doc/coreutils.texi
src/join.c
tests/misc/join