exit.right 180 B

123456789101112
  1. cow
  2. moo
  3. Traps1:
  4. trap -- 'exitfunc' EXIT
  5. Traps2:
  6. trap -- 'echo Should not run' EXIT
  7. Check1: 42
  8. Traps1:
  9. trap -- 'exitfunc' EXIT
  10. Traps2:
  11. trap -- 'echo Should not run' EXIT
  12. Check2: 42