I have a command that I want to have run again automatically each time it terminates, so I ran something like this:
while [ 1 ]; do COMMAND; done;
but if I can't stop the loop with Ctrl-c as that just kills
COMMAND and not the entire loop.
How would I achieve something similar but which I can stop without having to close the terminal?