summaryrefslogtreecommitdiffstats
path: root/scratch/bash-3.1-postpatch/tests/quote.tests
diff options
context:
space:
mode:
Diffstat (limited to 'scratch/bash-3.1-postpatch/tests/quote.tests')
-rw-r--r--scratch/bash-3.1-postpatch/tests/quote.tests63
1 files changed, 63 insertions, 0 deletions
diff --git a/scratch/bash-3.1-postpatch/tests/quote.tests b/scratch/bash-3.1-postpatch/tests/quote.tests
new file mode 100644
index 0000000..152ea5a
--- /dev/null
+++ b/scratch/bash-3.1-postpatch/tests/quote.tests
@@ -0,0 +1,63 @@
+echo "Single Quote"
+echo 'foo
+bar'
+echo 'foo
+bar'
+echo 'foo\
+bar'
+
+echo "Double Quote"
+echo "foo
+bar"
+echo "foo
+bar"
+echo "foo\
+bar"
+
+echo "Backslash Single Quote"
+echo `echo 'foo
+bar'`
+echo `echo 'foo
+bar'`
+echo `echo 'foo\
+bar'`
+
+echo "Backslash Double Quote"
+echo `echo "foo
+bar"`
+echo `echo "foo
+bar"`
+echo `echo "foo\
+bar"`
+
+echo "Double Quote Backslash Single Quote"
+echo "`echo 'foo
+bar'`"
+echo "`echo 'foo
+bar'`"
+echo "`echo 'foo\
+bar'`"
+
+echo "Dollar Paren Single Quote"
+echo $(echo 'foo
+bar')
+echo $(echo 'foo
+bar')
+echo $(echo 'foo\
+bar')
+
+echo "Dollar Paren Double Quote"
+echo $(echo "foo
+bar")
+echo $(echo "foo
+bar")
+echo $(echo "foo\
+bar")
+
+echo "Double Quote Dollar Paren Single Quote"
+echo "$(echo 'foo
+bar')"
+echo "$(echo 'foo
+bar')"
+echo "$(echo 'foo\
+bar')"