diff options
Diffstat (limited to 'third_party/git/t/chainlint/arithmetic-expansion.test')
-rw-r--r-- | third_party/git/t/chainlint/arithmetic-expansion.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/arithmetic-expansion.test b/third_party/git/t/chainlint/arithmetic-expansion.test new file mode 100644 index 000000000000..16206960d8b0 --- /dev/null +++ b/third_party/git/t/chainlint/arithmetic-expansion.test @@ -0,0 +1,11 @@ +( + foo && +# LINT: closing ")" of $((...)) not misinterpreted as subshell-closing ")" + bar=$((42 + 1)) && + baz +) && +( +# LINT: missing "&&" on $((...)) + bar=$((42 + 1)) + baz +) |