test08.sh 401 B

1234567891011121314151617181920
  1. #!./testshell
  2. echo 'Test 8: Start a child that is to be interrupted by SIGINT.'
  3. echo ' The shell should not continue with the script'
  4. if [ $ZSH_VERSION ] ; then
  5. source lib.sh
  6. else
  7. . ./lib.sh
  8. fi
  9. echo
  10. echo 'Should exit immedeatly after you break cat by SIGINT'
  11. echo cat
  12. cat
  13. sleep 1
  14. echo 'If you see this, you have a problem'
  15. sleep 1
  16. echo 'If you see this, you have even more problems'