summaryrefslogtreecommitdiff
path: root/t/chainlint/nested-cuddled-subshell.test
blob: 8fd656c7b598acfb19f026f1368f75e980766f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(
# LINT: opening "(" cuddled with first nested subshell statement
	(cd foo &&
		bar
	) &&
 
# LINT: same but "&&" missing
	(cd foo &&
		bar
	)
 
# LINT: closing ")" cuddled with final nested subshell statement
	(
		cd foo &&
		bar) &&
 
# LINT: same but "&&" missing
	(
		cd foo &&
		bar)
 
# LINT: "(" and ")" cuddled with first and final subshell statements
	(cd foo &&
		bar) &&
 
# LINT: same but "&&" missing
	(cd foo &&
		bar)
 
	foobar
)