summaryrefslogtreecommitdiff
path: root/tests/nquote.tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/nquote.tests')
-rw-r--r--tests/nquote.tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/nquote.tests b/tests/nquote.tests
index b25fbe3..62d90b9 100644
--- a/tests/nquote.tests
+++ b/tests/nquote.tests
@@ -100,3 +100,17 @@ recho $'hello, \$"world"'
recho $'hello, $\"world"'
recho "hello, $"world""
+
+# ansi quoting inside double-quoted command subst - bash-3.1 bug
+echo $(set -- $'a b'; echo $#)
+echo "$(set -- $'a b'; echo $#)"
+
+echo "$(echo $';foo')"
+
+args ()
+{
+ for a in "$@";do echo "'$a'";done
+}
+unset mytab
+recho "${mytab:-$'\t'}"
+recho "$( args $'A\tB' )"