I am looking at bash-3.0, trying to untangle the termination_unwind_protect() signal handler. I cannot work out under what circumstances the function run_interrupt_trap() is called.
sighandler termination_unwind_protect (sig) int sig; { if (sig == SIGINT && signal_is_trapped (SIGINT)) run_interrupt_trap (); If I run "trap 'echo foxtrot' SIGINT", the signal hander seems to be changed to trap_handler(), and so termination_unwind_protect() is not called. Can those two lines at the top of termination_unwind_protect() be removed? Tim. */
pgpy3L4cgb2nQ.pgp
Description: PGP signature
_______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash