22
What is a good way to override bash trap handlers that don't permanently trample existing ones that may or may not already be set? What about dynamically managing arbitrary chains of trap routines?
Is there a way to save the current state of the trap handlers so they can be restored later?