diff options
Diffstat (limited to 't/chainlint/command-substitution.test')
-rw-r--r-- | t/chainlint/command-substitution.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/chainlint/command-substitution.test b/t/chainlint/command-substitution.test new file mode 100644 index 0000000000..494d671e80 --- /dev/null +++ b/t/chainlint/command-substitution.test @@ -0,0 +1,13 @@ +test_expect_success 'command-substitution' ' +( + foo && +# LINT: closing ")" of $(...) not misinterpreted as subshell-closing ")" + bar=$(gobble) && + baz +) && +( +# LINT: missing "&&" on $(...) + bar=$(gobble blocks) + baz +) +' |