test06.sh 200 B

123456789
  1. #!./testshell
  2. echo 'Test 2: You should not be able to exit `cat` with SIGQUIT.'
  3. echo ' SIGINT and SIGTERM should exit the whole script.'
  4. set -x
  5. trap '' 3
  6. while : ; do cat ; echo -n $? ; done