aboutsummaryrefslogtreecommitdiffstats
path: root/tests/nquote.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nquote.tests')
-rw-r--r--tests/nquote.tests22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/nquote.tests b/tests/nquote.tests
index 05709f4..b25fbe3 100644
--- a/tests/nquote.tests
+++ b/tests/nquote.tests
@@ -77,4 +77,26 @@ printf "\'abcd\'\n"
echo -e "\'abcd\'"
echo -e "\\'abcd\\'"
+# and what do we do about unrecognized escape sequences?
+shopt -s xpg_echo
+
+recho $'A\CB'
+
+recho "A\CB"
+
+cde=c
+recho $'ab$cde'
+
+printf "%b\n" 'A\CB'
+printf 'A\CB\n'
+
+echo 'A\CB'
+
+world=chet
+
+recho $'hello, $"world"'
+recho $'hello, \$"world"'
+recho $'hello, $\"world"'
+
+recho "hello, $"world""