usage.tests 233 B

1234567891011121314151617181920212223
  1. # no output -- default state
  2. echo ___
  3. trap
  4. # assign some traps
  5. echo ___
  6. trap "a" EXIT INT USR1 USR2
  7. # show them all
  8. echo ___
  9. trap
  10. # clear one
  11. echo ___
  12. trap 0 INT
  13. echo ___
  14. trap
  15. # clear another
  16. echo ___
  17. trap "-" USR1
  18. echo ___
  19. trap