summaryrefslogtreecommitdiff
path: root/t/chainlint/here-doc-close-subshell.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/here-doc-close-subshell.test')
-rw-r--r--t/chainlint/here-doc-close-subshell.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/chainlint/here-doc-close-subshell.test b/t/chainlint/here-doc-close-subshell.test
new file mode 100644
index 0000000000..2458f3323b
--- /dev/null
+++ b/t/chainlint/here-doc-close-subshell.test
@@ -0,0 +1,7 @@
+test_expect_success 'here-doc-close-subshell' '
+(
+# LINT: line contains here-doc and closes nested subshell
+ cat <<-\INPUT)
+ fizz
+ INPUT
+'