From: "zzak (Zachary Scott)" Date: 2012-11-19T11:10:52+09:00 Subject: [ruby-core:49548] [ruby-trunk - Bug #7391][Open] Allow to use require_relative from eval and irb environment Issue #7391 has been reported by zzak (Zachary Scott). ---------------------------------------- Bug #7391: Allow to use require_relative from eval and irb environment https://bugs.ruby-lang.org/issues/7391 Author: zzak (Zachary Scott) Status: Open Priority: Normal Assignee: shyouhei (Shyouhei Urabe) Category: core Target version: ruby -v: 1.9.3 =begin From github: https://github.com/ruby/ruby/pull/139 Before patch (({1.9.3p125 :001 > require_relative "file"})) (({LoadError: cannot infer basepath})) (({from irb:1:in 'require_relative'})) (({from irb:1})) (({from /home/lite/.rvm/rubies/ruby-1.9.3-p125-perf/bin/irb:16:in '
'})) After patch (({1.9.3p125 :001 > require_relative "file" #=> true})) =end -- http://bugs.ruby-lang.org/