Code & Deploy
Code
Models
Repos
Sign in
@leroysheep
/
Socializer
Socializer
/
t
/
chainlint
/
command-substitution.test
Code
Commits
Pulls
CI/CD
81,972
jch
bisect
jch
maint
master
next
seen
test
todo
test
13 lines
220 Bytes
Copy permalink
Copy
Raw
1
test_expect_success
'command-substitution'
'
2
(
3
foo &&
4
# LINT: closing ")" of $(...) not misinterpreted as subshell-closing ")"
5
bar=$(gobble) &&
6
baz
7
) &&
8
(
9
# LINT: missing "&&" on $(...)
10
bar=$(gobble blocks)
11
baz
12
)
13
'