diff options
author | Elliott Hughes <enh@google.com> | 2019-04-29 08:54:45 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-04-30 17:05:31 -0500 |
commit | e425ab040b5315d94d59aa4448dc578daf894979 (patch) | |
tree | d9ff805c3a2755f59cd5d2dfea0362f134eb2865 /tests | |
parent | 07a716b167ef6b21f82c86b026dc0f8fdd385c6f (diff) | |
download | toybox-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-x | tests/echo.test | 3 |
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' "" "" |