Ctrl-C won't stop a bash loop if the program inside it catches the signal
DEV Community
Ctrl-C won't stop a bash loop if the program inside it catches the signal
A Python or Node program that handles Ctrl-C and exits cleanly makes bash carry on with the next loop iteration. dash, zsh, busybox ash and mksh quit instead. Here is the code in bash that decides.
0 comments
No comments yet.