test05.sh 515 B

123456789101112131415161718192021222324
  1. #!./testshell
  2. echo 'Test 5: The SIGINT/SIGQUIT-catching program is being run'
  3. echo ' A: The shell should not exit on signals while this program runs.'
  4. echo ' B: After you exited it via C-d, you should be able to end this'
  5. echo ' script with its 3 subhells with just one signal'
  6. echo ' script with just one SIGINT or SIGQUIT'
  7. if [ $ZSH_VERSION ] ; then
  8. source lib.sh
  9. else
  10. . ./lib.sh
  11. fi
  12. (
  13. (
  14. docatcher
  15. echo "Now try to exit with one SIGINT"
  16. endless
  17. )
  18. endless
  19. )
  20. endless