about summary refs log blame commit diff
path: root/t/chainlint/arithmetic-expansion.test
blob: 16206960d8b0fe6fac0511d1929d86b8a2dd8198 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                          
(
	foo &&
# LINT: closing ")" of $((...)) not misinterpreted as subshell-closing ")"
	bar=$((42 + 1)) &&
	baz
) &&
(
# LINT: missing "&&" on $((...))
	bar=$((42 + 1))
	baz
)