summaryrefslogtreecommitdiffstats
path: root/tests/comsub4.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/comsub4.sub')
-rw-r--r--tests/comsub4.sub27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/comsub4.sub b/tests/comsub4.sub
new file mode 100644
index 0000000..461a9ad
--- /dev/null
+++ b/tests/comsub4.sub
@@ -0,0 +1,27 @@
+x=$(cat <<'EOT'
+d \
+g
+EOT
+)
+
+echo "$x"
+unset x
+
+x=$( cat <<\EOT\
+4
+d \
+g
+EOT4
+)
+
+echo "$x"
+unset x
+
+x=$( cat <<\EOT
+d \
+g
+EOT
+)
+
+echo "$x"
+