From: Brian Candler Date: 2012-01-14T17:41:08+09:00 Subject: Re: at_exit handling Marc Heiler wrote in post #1040604: > I am writing on a pseudo-ruby shell (with a bash-like syntax). > > I usually use 'q' to quit it. > > Then suddenly one day, I required some files, one of which used at_exit, > and I had a weird bug in that the exiting no longer worked as-is, > instead it raised some SystemExit exception. > > This confused me a lot because that should not happen at all ever. If you want your code to terminate without calling any at_exit handlers you've pulled in, use "exit!" Regards, Brian. -- Posted via http://www.ruby-forum.com/.