test28.sh 322 B

12345678910
  1. #! ./testshell
  2. echo "This script should be breakable by SIGINT if you run a shell with"
  3. echo "asynchrnous traps enabled. Examples: FreeBSD's sh with switch -T"
  4. echo "from April, 1999 or FreeBSD's sh between September 1998 and March"
  5. echo "1999. SIGQUIT should do nothing"
  6. trap : 3
  7. trap 'echo SIGINT ; exit 1' 2
  8. ./hardguy