join: don't report disorder against an empty file
authorPádraig Brady <P@draigBrady.com>
Thu, 27 Jan 2011 07:17:16 +0000 (07:17 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 29 Jan 2011 23:39:16 +0000 (23:39 +0000)
commit877ca5bf8588ae73a6ccc672e41f13c5b3943b14
treeaecfb3505bf785ccb775305fb49bf89d712b0fa9
parent32626bde6d68508109a99dfe0a089a0025f56085
join: don't report disorder against an empty file

This allows one to use join as a field extractor like:
  join -a1 -o 1.3,1.1 - /dev/null

* src/join.c (join): Don't flag unpairable lines when
one of the files is empty.
* tests/misc/join: Add a new test for empty input, and adjust
a previous test that was only checking against empty input.
* doc/coreutils.texi (join invocation): Document the change.
* NEWS: Likewise.
NEWS
doc/coreutils.texi
src/join.c
tests/misc/join