test28a.sh 263 B

12345678910
  1. #! ./testshell
  2. echo "This script is the same as the last, but it enables the asynchronous"
  3. echo "trap switch (-T) in FreeBSD's sh from April 1999."
  4. echo "Other shells should not exit on SIGINT or SIGQUIT."
  5. set -T
  6. trap : 3
  7. trap 'echo SIGINT ; exit 1' 2
  8. ./hardguy