summaryrefslogtreecommitdiffstats
path: root/t/chainlint/bash-array.test
diff options
context:
space:
mode:
Diffstat (limited to 't/chainlint/bash-array.test')
-rw-r--r--t/chainlint/bash-array.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/chainlint/bash-array.test b/t/chainlint/bash-array.test
new file mode 100644
index 0000000..92bbb77
--- /dev/null
+++ b/t/chainlint/bash-array.test
@@ -0,0 +1,12 @@
+(
+ foo &&
+# LINT: ")" in Bash array assignment not misinterpreted as subshell-closing ")"
+ bar=(gumbo stumbo wumbo) &&
+ baz
+) &&
+(
+ foo &&
+# LINT: Bash array length operator not misinterpreted as comment
+ bar=${#bar[@]} &&
+ baz
+)