title: Handling multiple signals with one trap in bash
body: <p>There is question about  <a href="https://stackoverflow.com/questions/3338030/multiple-bash-traps-for-the-same-signal">multiple bash traps for same signal</a>. What about the opposite version? Is possible to write something like this:</p>
  
  <pre><code>sighand () {
    case $1 in
      1)
        echo "CATCH: SIGHUP"
        ;;
      2)
        echo "CATCH: SIGINIT"
        ;;
  
      ...
      # ALL EXCEPT 9
      ...
  
    esac
   };
  
   trap sighand ALL
  </code></pre>
  
  <p>instead of this:</p>
  
  <pre><code>sighand () {
    echo "CATCH: TERM"
  };
  trap sighand TERM
  </code></pre>