From e425ab040b5315d94d59aa4448dc578daf894979 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 29 Apr 2019 08:54:45 -0700 Subject: echo: add -E. POSIX finally gave us a way to use echo in a portable way despite differences of opinion about whether to default interpretation of escape sequences to on or off: -e enables and -E disables (as already implemented by busybox and coreutils). http://austingroupbugs.net/view.php?id=1222 --- tests/echo.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/echo.test b/tests/echo.test index e2035561..fa53559a 100755 --- a/tests/echo.test +++ b/tests/echo.test @@ -34,3 +34,6 @@ testcmd "-e hexadecimal values" \ "S4 0 XYZ ?\n" "" "" testcmd "-e \p" "-e '\\p'" "\\p\n" "" "" + +# http://austingroupbugs.net/view.php?id=1222 added -E +testcmd "-En" "-En 'one\ntwo'" 'one\\ntwo' "" "" -- cgit v1.2.3