diff options
author | Denis Vlasenko | 2008-07-28 23:17:31 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-07-28 23:17:31 +0000 |
commit | 918a34b9e04cbf368dd7a1116d7467e6e7f8ccc9 (patch) | |
tree | e210dcb9b76b230df380c56334f9a26d6f0aa05e /shell/hush_test/hush-misc/break4.tests | |
parent | 6a2d40f239566e886ef76542a75662cee9380a0e (diff) | |
download | busybox-918a34b9e04cbf368dd7a1116d7467e6e7f8ccc9.zip busybox-918a34b9e04cbf368dd7a1116d7467e6e7f8ccc9.tar.gz |
hush: fix "while false; ..." exitcode; add testsuites
Diffstat (limited to 'shell/hush_test/hush-misc/break4.tests')
-rwxr-xr-x | shell/hush_test/hush-misc/break4.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/break4.tests b/shell/hush_test/hush-misc/break4.tests new file mode 100755 index 0000000..67da288 --- /dev/null +++ b/shell/hush_test/hush-misc/break4.tests @@ -0,0 +1,12 @@ +cond=true +while $cond; do + echo A + if test "$cond" = true; then + cond='echo TRUE' + else + cond=false + fi + while true; do echo AA; continue 2; echo BB; done + echo B +done +echo OK:$? |