summaryrefslogtreecommitdiff
path: root/t/chainlint/exit-loop.expect
blob: 84d8bdebc02660d3a4ad0aeb341a9f991547b46c (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
(
	for i in a b c
	do
		foo || exit 1
		bar &&
		baz
	done
>) &&
(
	while true
	do
		foo || exit 1
		bar &&
		baz
	done
>) &&
(
	i=0 &&
	while test $i -lt 10
	do
		echo $i || exit
		i=$(($i + 1))
	done
>)