From 2904d675a49cdd7cb2372f50592a6823106aa0f7 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Tue, 27 Oct 2009 10:04:34 +0000 Subject: 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 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 35d141323..abf2466b6 100644 --- a/NEWS +++ b/NEWS @@ -43,6 +43,8 @@ GNU coreutils NEWS -*- outline -*- with the invoked command failing with status 1. Likewise, nohup fails with status 125 instead of 127. + echo and printf now interpret \e as the Escape character (0x1B). + ** New features env and printenv now accept the option --null (-0), as a means to -- cgit v1.2.3-54-g00ecf