about summary refs log tree commit diff
path: root/third_party/git/t/chainlint/bash-array.test
blob: 92bbb777b82af05900f9c53d0202b70064526439 (plain) (blame)
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
)