test02.sh 315 B

1234567891011
  1. #!./testshell
  2. echo 'Test 2: You should not be able to exit `cat` with SIGINT.'
  3. echo ' SIGQUIT should abort `cat` (with coredump) while'
  4. echo ' the shell should continue and call `cat` again.'
  5. echo ' SIGTERM should exit the whole script.'
  6. set -x
  7. trap '' 2
  8. while : ; do cat ; echo -n $? ; done