summaryrefslogtreecommitdiff
path: root/shell/msh_test/TODO_bug846
blob: 5c777fedb2fb70714f0ce2c2fbadecc3369e511c (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
28
29
#!/bin/sh
# For future msh testsuite:
# 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

# output should be:
# A
# B
# iteration
# C
# A
# B
# iteration
# D