summaryrefslogtreecommitdiff
path: root/t/chainlint/arithmetic-expansion.test
blob: 7b4c5c9a4138541f569d2844559abe033f63cf50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
test_expect_success 'arithmetic-expansion' '
(
	foo &&
# LINT: closing ")" of $((...)) not misinterpreted as subshell-closing ")"
	bar=$((42 + 1)) &&
	baz
) &&
(
# LINT: missing "&&" on $((...))
	bar=$((42 + 1))
	baz
)
'