aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/here-document.test
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/parser/here-document.test')
-rw-r--r--unit-tests/test/script/parser/here-document.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/here-document.test b/unit-tests/test/script/parser/here-document.test
new file mode 100644
index 0000000..7cfa8d4
--- /dev/null
+++ b/unit-tests/test/script/parser/here-document.test
@@ -0,0 +1,20 @@
+
+# quote
+#
+# Note: they are still recognized in eval contexts.
+#
+$* <<EOI >>EOO
+cmd <<EOF
+'single'
+"double"
+b'o't"h"
+('single' "double")
+EOF
+EOI
+cmd <<EOF
+'single'
+"double"
+b'o't"h"
+'single' "double"
+EOF
+EOO