Is there a reserved command name that will be run when the entire script is terminated by the user with Control+c? For example, if I wanted to do puts "Script terminated by user." when the script is terminated, how can I do it?
Is there a reserved command name that will be run when the entire script
Share
Run this, and hit ctrl-c.