test23b.sh 285 B

1234567891011121314151617
  1. #! ./testshell
  2. trap 'echo trap ; trap 2 ; kill -2 $$' 2
  3. #echo called is pid $$
  4. echo 'test23, variant of 20, differs in that the trap handler is defined'
  5. echo ' without a shell function'
  6. echo 'You should be able to kill this script with just one SIGINT'
  7. cat
  8. cat
  9. cat
  10. cat
  11. cat