aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-04-29 08:54:45 -0700
committerRob Landley <rob@landley.net>2019-04-30 17:05:31 -0500
commite425ab040b5315d94d59aa4448dc578daf894979 (patch)
treed9ff805c3a2755f59cd5d2dfea0362f134eb2865 /tests
parent07a716b167ef6b21f82c86b026dc0f8fdd385c6f (diff)
downloadtoybox-e425ab040b5315d94d59aa4448dc578daf894979.tar.gz
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/echo.test3
1 files changed, 3 insertions, 0 deletions
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' "" ""