summaryrefslogtreecommitdiff
path: root/t/chainlint/here-doc-body-pathological.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/here-doc-body-pathological.test')
-rw-r--r--t/chainlint/here-doc-body-pathological.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/chainlint/here-doc-body-pathological.test b/t/chainlint/here-doc-body-pathological.test
new file mode 100644
index 0000000000..7d2daa44f9
--- /dev/null
+++ b/t/chainlint/here-doc-body-pathological.test
@@ -0,0 +1,9 @@
+test_expect_success 'here-doc-body-pathological' - <<\EOF
+ echo "outer here-doc does not allow indented end-tag"
+ cat >file <<-\EOF &&
+ but this inner here-doc
+ does allow indented EOF
+ EOF
+ echo "missing chain after"
+ echo "but this line is OK because it's the end"
+EOF