Specifically, I ran a rm -R /my/dir by mistake on a unix box (ubuntu 10.04). When I realized the horror within a few seconds I quickly killed it with the Ctrl+C command. It now seems I haven't lost ...
How do I implement Ctrl-C handling in bash scripts so that the script interrupts as well as the currently running command, launched by it? Imagine there's a script that executes some long-running ...