]> git.ipfire.org Git - thirdparty/coreutils.git/commit
comm: fix NUL --output-delimiter with --total
authorPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 17:40:14 +0000 (18:40 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Aug 2022 17:41:10 +0000 (18:41 +0100)
commit708ae170c987dab83273cb885496e1a8a90233e8
tree5489c64b61569630c9e7380ba6adfe13a67d99f1
parentc88f08f9b6d7b509ece19b746d57b73133ab6618
comm: fix NUL --output-delimiter with --total

* src/comm.c (compare_files): Handle the single character
--output-delimeter case separately so that NUL is appropriately
handled.
* doc/coreutils.texi (comm invocation): Fix the description
of --output-delimiter to say an empty delimeter is treated
as a NUL separator, rather than being disallowed.
* tests/misc/comm.pl: Add a test case.
Reported at https://bugs.debian.org/1014008
doc/coreutils.texi
src/comm.c
tests/misc/comm.pl