blob: 5c777fedb2fb70714f0ce2c2fbadecc3369e511c [file] [log] [blame]
Denis Vlasenkofe218832008-03-01 09:35:39 +00001#!/bin/sh
2# For future msh testsuite:
3# Testcase for http://bugs.busybox.net/view.php?id=846
4
5n=0
6while :
7do
8 echo A
9 while :
10 do
11 echo B
12 break
13 done
14 echo iteration
15 [ $n = 1 ] && break
16 echo C
17 n=`expr $n + 1`
18done
19echo D
20
21# output should be:
22# A
23# B
24# iteration
25# C
26# A
27# B
28# iteration
29# D