title: how do I kill this bash script?
body: <p>I have written a bash script, A, that is calling another script, B, over 1000 times in a loop.</p>
  
  <p><kbd>Ctrl</kbd>+<kbd>C</kbd> kills only script B, only one iteration. Script A keeps running and calling script B again.</p>
  
  <p>Can I rewrite something in these scripts so that <kbd>Ctrl</kbd>+<kbd>C</kbd> will kill script A?</p>