We have a whole bunch of trap "$script" 0 1 2 3 15 callers, where $script is unintentionally invoked multiple times. Either the trap handler should be cleared, or the signal list should be trimmed to e.g. only 0, so that a SIGINT invocation won't be followed by a second for EXIT.
We have a whole bunch of
trap "$script" 0 1 2 3 15
callers, where$script
is unintentionally invoked multiple times. Either thetrap
handler should be cleared, or the signal list should be trimmed to e.g. only0
, so that aSIGINT
invocation won't be followed by a second forEXIT
.