tvl-depot/third_party/git/t/chainlint/arithmetic-expansion.test

12 lines
174 B
Text
Raw Normal View History

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