summaryrefslogtreecommitdiff
path: root/t/chainlint/while-loop.expect
blob: 2ba55821654bb89fedfe5fc88ef4c0afff6300e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2 (
3 	while true
4 	do
5 		echo foo ?!LINT: missing '&&'?!
6 		cat <<-\EOF ?!LINT: missing '|| exit 1'?!
7 		bar
8 		EOF
9 	done ?!LINT: missing '&&'?!
10 
11 	while true; do
12 		echo foo &&
13 		cat bar ?!LINT: missing '|| exit 1'?!
14 	done
15 )