echo, printf: interpret \e as the Escape character
authorPádraig Brady <P@draigBrady.com>
Tue, 27 Oct 2009 10:04:34 +0000 (10:04 +0000)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Oct 2009 16:37:07 +0000 (16:37 +0000)
commit2904d675a49cdd7cb2372f50592a6823106aa0f7
tree4ec374f8d26b4f1ac3e7454233ab0adc732cc2b8
parent54491d275184428be6e28e3f22f04859b7288105
echo, printf: interpret \e as the Escape character

Match gcc, perl, bash, ksh, tcsh, ... in supporting \e.
* src/printf.c (print_escape_char): Output \x1B when \e encountered.
* src/echo.c (main): Likewise.
* src/stat.c (print_escape_char): Likewise.
* doc/coreutils.texi (echo invocation): Add \e to the list.
* tests/misc/printf: Verify that \e outputs \x1B.
* NEWS: Mention the change in behaviour.
NEWS
doc/coreutils.texi
src/echo.c
src/printf.c
src/stat.c
tests/misc/printf