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