test21.sh 133 B

12345678910111213141516
  1. #! ./testshell
  2. traph ()
  3. {
  4. echo 'Survived!'
  5. }
  6. trap traph 2
  7. echo 'You should need 5 SIGINT to end this script'
  8. cat
  9. cat
  10. cat
  11. cat
  12. cat