nested_break.tests 256 B

1234567891011121314151617
  1. # Testcase for http://bugs.busybox.net/view.php?id=846
  2. n=0
  3. while :
  4. do
  5. echo A
  6. while :
  7. do
  8. echo B
  9. break
  10. done
  11. echo iteration
  12. [ $n = 1 ] && break
  13. echo C
  14. n=`expr $n + 1`
  15. done
  16. echo D