comm: support NUL --output-delimiter for consistency
commit0e46753d7c9519d7378cd3a4e0951a36ac32ffe7
authorPádraig Brady <P@draigBrady.com>
Fri, 8 Jan 2016 15:42:56 +0000 (8 15:42 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 13 Jan 2016 10:59:56 +0000 (13 10:59 +0000)
treeec8de30ef6b0ef37cf149f11c1c690d1dc4c66ae
parentf3b4def577c4eee22f83b72d1310aa1d9155908d
comm: support NUL --output-delimiter for consistency

* src/comm.c (main): Track the output delimiter length,
so that it can be adjusted to 1 for the NUL delimiter.
Also rename the global variable from "delimiter" to
"col_sep" so its use is more obvious, and to distinguish
from the recently added "delim" global variable.
* tests/misc/comm.pl: Adjust accordingly.
src/comm.c
tests/misc/comm.pl