From 722f1909e4e7c1201c0553e94a01b982db462e5e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 15 Apr 2020 05:45:37 -0500 Subject: Echo tests for new unescape2() functionality. --- tests/echo.test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/echo.test b/tests/echo.test index 80774e66..3ef60671 100755 --- a/tests/echo.test +++ b/tests/echo.test @@ -45,3 +45,7 @@ testcmd "-e \p" "-e '\\p'" "\\p\n" "" "" # http://austingroupbugs.net/view.php?id=1222 added -E testcmd "-En" "-En 'one\ntwo'" 'one\\ntwo' "" "" testcmd "-eE" "-eE '\e'" '\\e\n' "" "" + +# This is how bash's built-in echo behaves, but now how /bin/echo behaves. +toyonly testcmd "" "-e 'a\x123\ufb3bbc' | od -An -tx1" \ + " 61 12 33 ef ac bb 62 63 0a\n" "" "" -- cgit v1.2.3