Bash traps override rather than stack. Example:
λ trap 'echo A' SIGINT
λ trap 'echo B' SIGINT
λ trap 'echo C' SIGINT
λ kill -SIGINT $$
C
The work is always in progress.
Bash traps override rather than stack. Example:
λ trap 'echo A' SIGINT
λ trap 'echo B' SIGINT
λ trap 'echo C' SIGINT
λ kill -SIGINT $$
C