echo: always process escapes when POSIXLY_CORRECT is set
commit8d328706c6ef0264dffb923f96431af1e26dcddd
authorPádraig Brady <P@draigBrady.com>
Mon, 24 Sep 2018 02:35:24 +0000 (23 19:35 -0700)
committerPádraig Brady <P@draigBrady.com>
Sat, 27 Oct 2018 10:05:24 +0000 (27 03:05 -0700)
tree340da427d1403531caa4c52fa114a1e40209fa1d
parent1a674a036bf92739bc79dc54596b9340e8b2ddea
echo: always process escapes when POSIXLY_CORRECT is set

* src/echo.c (main): Always enable backslash processing if
POSIXLY_CORRECT is set.
* tests/misc/echo.sh: Add (the first) test for the echo command.
* tests/local.mk: Reference the new test.
* tests/misc/printf.sh: Update a stale comment.
* doc/coreutils.texi (echo invocation). Mention that POSIXLY_CORRECT
now always enables backslash processing.
* NEWS: Mention the change in behavior.
Fixes https://bugs.gnu.org/32703
Issue identified by Eric Blake.
NEWS
doc/coreutils.texi
src/echo.c
tests/local.mk
tests/misc/echo.sh [new file with mode: 0755]
tests/misc/printf.sh