From: Eric Hodel Date: 2009-11-24T10:58:09+09:00 Subject: Re: Rubygems 1.3.5 can't load 'rubygems/defaults/operating_sy..' On Nov 23, 2009, at 16:55, Eric Roscher wrote: > Hello, > > I had troubles using net-ssh gem and when debugged my script it raised > the following: > > $ruby -dw sshtry.rb > Exception `LoadError' at /usr/lib/ruby/1.8/rubygems.rb:1113 - no such > file to load -- rubygems/defaults/operating_system It's a feature of ruby -d $ ruby -de 'begin; raise; rescue; end; p :ok' Exception `RuntimeError' at -e:1 - :ok $ ruby -de 'begin; require "no such file"; rescue LoadError; end; p :ok' Exception `LoadError' at -e:1 - no such file to load -- no such file :ok it prints for every raised error, even if caught.