join: make -t '' operate on the whole line
authorPádraig Brady <P@draigBrady.com>
Mon, 1 Feb 2010 15:19:08 +0000 (15:19 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Feb 2010 15:36:56 +0000 (15:36 +0000)
commitf86bb6967dba1e2b6026997963a90e00cd641490
tree0b4451e967924bfba4c42f9c819c0e33b1b53c95
parent819aa9eba741c36bb522cbc2c7f10e24d190f945
join: make -t '' operate on the whole line

Previously passing an empty parameter to -t would
raise an error, but now it means to treat each line
as a single field for matching.  This matches the
default operation of `sort` which is usually used
in conjunction with join.

* src/join.c (main): Set the field delimiter to '\n' if
an empty parameter is passed to -t.
(usage): Mention the operation of -t ''.
* tests/misc/join: Add 2 new tests, for the existing -t '\0'
and the new -t '' functionality.
* doc/coreutils.texi (join invocation): Mention that
join -t '' always operates on the whole line, while
join -t '\0' usually does.
* NEWS: Mention the change in behavior.
NEWS
doc/coreutils.texi
src/join.c
tests/misc/join