]> git.ipfire.org Git - thirdparty/coreutils.git/commit
join: Add the -z, --zero-terminated option
authorAssaf Gordon <assafgordon@gmail.com>
Thu, 14 Feb 2013 20:29:08 +0000 (15:29 -0500)
committerPádraig Brady <P@draigBrady.com>
Thu, 28 Feb 2013 01:49:56 +0000 (01:49 +0000)
commit6eb51ce29e962bc13586261bd0e1de4780c269ff
tree737687e0f2bb181a1eff21700ffbe848be1f1da7
parent551128ebd71d1216ccc807eccee91190d6b21462
join: Add the -z, --zero-terminated option

* NEWS: Mention join's new option: --zero-terminated (-z).
* src/join.c: Add new option, --zero-terminated (-z), to make
join use the NUL byte as separator/delimiter rather than newline.
(get_line): Use readlinebuffer_delim in place of readlinebuffer.
(main): Handle the new option.
(usage): Describe new option the same way sort does.
* doc/coreutils.texi (join invocation): Describe the new option.
* tests/misc/join.pl: add tests for -z option.
NEWS
doc/coreutils.texi
src/join.c
tests/misc/join.pl