many_continues.tests 224 B

123456789101112131415
  1. if test $# = 0; then
  2. # Child will kill us in 1 second
  3. "$THIS_SH" "$0" $$ &
  4. # Loop many, many times
  5. trap 'echo OK; exit 0' 15
  6. while true; do
  7. continue
  8. done
  9. echo BAD
  10. exit 1
  11. fi
  12. sleep 1
  13. kill $1