summaryrefslogtreecommitdiff
path: root/shell/msh_test/msh-execution/nested_break.tests
blob: 1a954d22728363a2c8b10fc2c497383999595035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Testcase for http://bugs.busybox.net/view.php?id=846

n=0
while :
do
	echo A
	while :
	do
		echo B
		break
	done
	echo iteration
	[ $n = 1 ] && break
	echo C
	n=`expr $n + 1`
done
echo D