about summary refs log tree commit diff
path: root/third_party/git/t/chainlint/here-doc-multi-line-command-subst.test
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/t/chainlint/here-doc-multi-line-command-subst.test')
-rw-r--r--third_party/git/t/chainlint/here-doc-multi-line-command-subst.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/here-doc-multi-line-command-subst.test b/third_party/git/t/chainlint/here-doc-multi-line-command-subst.test
new file mode 100644
index 0000000000..899bc5de8b
--- /dev/null
+++ b/third_party/git/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
+)