diff options
Diffstat (limited to 'third_party/git/t/chainlint/bash-array.test')
-rw-r--r-- | third_party/git/t/chainlint/bash-array.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/git/t/chainlint/bash-array.test b/third_party/git/t/chainlint/bash-array.test new file mode 100644 index 000000000000..92bbb777b82a --- /dev/null +++ b/third_party/git/t/chainlint/bash-array.test @@ -0,0 +1,12 @@ +( + foo && +# LINT: ")" in Bash array assignment not misinterpreted as subshell-closing ")" + bar=(gumbo stumbo wumbo) && + baz +) && +( + foo && +# LINT: Bash array length operator not misinterpreted as comment + bar=${#bar[@]} && + baz +) |