summaryrefslogtreecommitdiff
path: root/t/chainlint/block.test
blob: 4ab69a4afc40381561b0ccd2a4d7f1abe96c80d1 (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
(
# LINT: missing "&&" after first "echo"
	foo &&
	{
		echo a
		echo b
	} &&
	bar &&
# LINT: missing "&&" at closing "}"
	{
		echo c
	}
	baz
) &&
 
# LINT: ";" not allowed in place of "&&"
{
	echo a; echo b
} &&
{ echo a; echo b; } &&
 
# LINT: "}" inside string not mistaken as end of block
{
	echo "${var}9" &&
	echo "done"
} &&
finis