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