summary refs log tree commit diff
path: root/bin/1sh/tests/parser/dollar-quote1.0
diff options
context:
space:
mode:
Diffstat (limited to 'bin/1sh/tests/parser/dollar-quote1.0')
-rw-r--r--bin/1sh/tests/parser/dollar-quote1.012
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/1sh/tests/parser/dollar-quote1.0 b/bin/1sh/tests/parser/dollar-quote1.0
new file mode 100644
index 00000000..12061417
--- /dev/null
+++ b/bin/1sh/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")" ]