aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/tests/parser/dollar-quote1.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/tests/parser/dollar-quote1.0')
-rw-r--r--bin/sh/tests/parser/dollar-quote1.012
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/sh/tests/parser/dollar-quote1.0 b/bin/sh/tests/parser/dollar-quote1.0
new file mode 100644
index 000000000000..12061417e108
--- /dev/null
+++ b/bin/sh/tests/parser/dollar-quote1.0
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+set -e
+
+[ $'hi' = hi ]
+[ $'hi
+there' = 'hi
+there' ]
+[ $'\"\'\\\a\b\f\t\v' = "\"'\\$(printf "\a\b\f\t\v")" ]
+[ $'hi\nthere' = 'hi
+there' ]
+[ $'a\rb' = "$(printf "a\rb")" ]