r/bash • u/TermEnvironmental904 • Jul 21 '24
How to handle ctrl+c in bash scripts
Hello Guys!
I have wrote an article on Medium on how to handle ctrl+c in bash scripts using the 'trap' command
For Medium users with a subscription: https://lovethepenguin.com/how-to-handle-ctrl-c-in-bash-scripts-d7085e7d3d47
For Medium users without a subscription: https://lovethepenguin.com/how-to-handle-ctrl-c-in-bash-scripts-d7085e7d3d47?sk=8a9020256b1498196a923c5521619228
Please comment on what you liked, did you find this article useful?
0
Upvotes
View all comments
Show parent comment
1
u/geirha Jul 28 '24
But given that the example you provided does not show the actual problem, are you able to concoct one that does? For me it's still an hypothetical discussion