summaryrefslogtreecommitdiffstats
path: root/t/chainlint/cuddled.test
blob: 257b5b5eed3a23a6549f3a6f2b5ea77a776ad7e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# LINT: first subshell statement cuddled with opening "("
(cd foo &&
	bar
) &&

# LINT: same with missing "&&"
(cd foo
	bar
) &&

# LINT: closing ")" cuddled with final subshell statement
(
	cd foo &&
	bar) &&

# LINT: "(" and ")" cuddled with first and final subshell statements
(cd foo &&
	bar) &&

# LINT: same with missing "&&"
(cd foo
	bar)