Denis Vlasenko | fe21883 | 2008-03-01 09:35:39 +0000 | [diff] [blame] | 1 | # Testcase for http://bugs.busybox.net/view.php?id=846 |
2 | |||||
3 | n=0 | ||||
4 | while : | ||||
5 | do | ||||
Denys Vlasenko | 3581c62 | 2010-01-25 13:39:24 +0100 | [diff] [blame^] | 6 | echo A |
7 | while : | ||||
8 | do | ||||
9 | echo B | ||||
10 | break | ||||
11 | done | ||||
12 | echo iteration | ||||
13 | [ $n = 1 ] && break | ||||
Denis Vlasenko | fe21883 | 2008-03-01 09:35:39 +0000 | [diff] [blame] | 14 | echo C |
Denys Vlasenko | 3581c62 | 2010-01-25 13:39:24 +0100 | [diff] [blame^] | 15 | n=`expr $n + 1` |
Denis Vlasenko | fe21883 | 2008-03-01 09:35:39 +0000 | [diff] [blame] | 16 | done |
17 | echo D |