summaryrefslogtreecommitdiffstats
path: root/t/chainlint/bash-array.test
blob: 92bbb777b82af05900f9c53d0202b70064526439 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
)