On Unix bash, when I run stty intr ^M
(^M is Control-M) I have effectively blocked myself from running any commands. Whenever I press the "return" key, I am sending the interrupt signal to the shell and my command is never run. Suppose I had this in my .profile (I don't actually..); how could I get myself out of this hole from a bash session with ^M set to trigger an interrupt signal?
Chris