From: Stefan Rusterholz Date: 2009-06-16T16:56:31+09:00 Subject: Re: irb save-history not working Julien Palmas wrote: > Thx for your answer Joel, but I've tried with and without the line with > no success ... I had the same problem. IRB uses (for whatever obscure reason) finalizers to do the saving. Now finalizers are not guaranteed to be run. And that's exactly what happens. I wrote a fix for my save-history.rb, but I'm not sure how clean it is. Anyway, for now it solves my problem and I'll share it with you. Hope it helps you too: http://pastie.org/513500 I put it into /opt/local/lib/ruby/site_ruby/1.8/irb/ext/save-history.rb, you may have to change the /opt/local/lib part to where your ruby's lib path is. Regards Stefan Rusterholz -- Posted via http://www.ruby-forum.com/.