paste: avoid confusing backslash quoting in diagnostic
commitc3763e5219979a714d380304b4847c9b1671241a
authorPádraig Brady <P@draigBrady.com>
Wed, 4 Nov 2015 01:14:33 +0000 (4 01:14 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 4 Nov 2015 23:30:15 +0000 (4 23:30 +0000)
treec03037a34bc7d825889134b3ad53cededd1bab16
parent109b9220cead6e979d22d16327c4d9f8350431cc
paste: avoid confusing backslash quoting in diagnostic

* src/paste.c (main): Setting the quoting style to "escape"
went against the intent of the comment about presenting
doubled backslashes to the user.  Instead use "c-maybe"
which is the only mode which avoids doubled backslashes,
and provides protection against arbitrary control characters.
* tests/misc/paste.pl: Adjust accordingly.
src/paste.c
tests/misc/paste.pl