From: WATANABE Hirofumi Date: 2002-08-27T12:15:39+09:00 Subject: Re: Bug report: $irbrc does not affect IRB Hi, Brian Marick writes: > In both the IRB from Ruby 1.6.4 and irb-0.9-02.07.03.tgz from RAA, > there appears to be a bug in the handling of $irbrc: it's ignored. > > I think the problem is in init.rb, here: > > def IRB.run_config > if @CONF[:RC] > rcs = [] > rcs.push File.expand_path("~/.irbrc") if ENV.key?("HOME") > rcs.push ".irbrc" > rcs.push "irb.rc" > rcs.push "_irbrc" > rcs.push "$irbrc" ### Here > # now try each file. > > Note the quotes around "$irbrc". I suggest the last line read like this: > > rcs.push $irbrc if $irbrc > > That works when I try it. A file name called $irbrc exists for BOW. BOW stands for "BSD on Windows". http://www.ascii.co.jp/books/detail/4-7561/4-7561-0305-7.html http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/2405 Both are written in Japanese. However, BOW is hardly used any longer and don't refer to this file name for it. -- eban