about summary refs log tree commit diff
path: root/third_party/git/t/chainlint/arithmetic-expansion.test
blob: 16206960d8b0fe6fac0511d1929d86b8a2dd8198 (plain) (blame)
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
)