summaryrefslogtreecommitdiffstats
path: root/t/chainlint/here-doc-multi-line-command-subst.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/here-doc-multi-line-command-subst.test')
-rw-r--r--t/chainlint/here-doc-multi-line-command-subst.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/chainlint/here-doc-multi-line-command-subst.test b/t/chainlint/here-doc-multi-line-command-subst.test
new file mode 100644
index 0000000..899bc5d
--- /dev/null
+++ b/t/chainlint/here-doc-multi-line-command-subst.test
@@ -0,0 +1,9 @@
+(
+# LINT: line contains here-doc and opens multi-line $(...)
+ x=$(bobble <<-\END &&
+ fossil
+ vegetable
+ END
+ wiffle)
+ echo $x
+)