I have written a bash script, A, that is calling another script, B, over 1000 times in a loop.
Ctrl+C kills only script B, only one iteration. Script A keeps running and calling script B again.
Can I rewrite something in these scripts so that Ctrl+C will kill script A?