13 lines
221 B
Text
13 lines
221 B
Text
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
|
|
)
|
|
'
|