summaryrefslogtreecommitdiff
path: root/shell/msh_test/msh-execution/nested_break.tests
blob: f2e6f81ae8461b9253f666b8c54e78531b9619e1 (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