diff options
author | Bjørn Mork <bjorn@mork.no> | 2015-05-15 10:20:47 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2015-05-15 10:20:47 +0200 |
commit | 73b16af8feec390afbabd9356d6e5e83c0390838 (patch) | |
tree | 3730020ba2f9caeb9d7815a975af51830b51ce11 /shell/msh_test/msh-execution/nested_break.tests |
busybox: imported from http://www.busybox.net/downloads/busybox-1.13.3.tar.bz2busybox-1.13.3
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'shell/msh_test/msh-execution/nested_break.tests')
-rwxr-xr-x | shell/msh_test/msh-execution/nested_break.tests | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/shell/msh_test/msh-execution/nested_break.tests b/shell/msh_test/msh-execution/nested_break.tests new file mode 100755 index 0000000..f2e6f81 --- /dev/null +++ b/shell/msh_test/msh-execution/nested_break.tests @@ -0,0 +1,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 |