title: Jump to the next function by pressing Ctrl-C
body: <p>Assume that there are some functions which they do different jobs. I want to be able to press Ctrl-C to jump to the next function instead of canceling all the script at once.</p>
  <p>I tried <code>trap ctrl_c INT</code> but it didn't work. FYI, I use curl in some of the functions.</p>
  <p>How can I do it?</p>
  <pre><code>function first {
      # do the first job
  }
  
  function second {
      # do the second job
  }
  
  function third {
      # do the third job
  }
  
  first  &amp;&amp;
  second &amp;&amp;
  third  &amp;&amp;
  rm *.del
  </code></pre>