Is there a way to check what trap
s have been set (in the current session or script) in Bash?
Ideally, I'd like to be able to get a list of the signals that have a trap
assigned to them, but if that's not possible I can just check each signal individually.