Bug #7391

Allow to use require_relative from eval and irb environment

Added by Zachary Scott over 1 year ago. Updated over 1 year ago.

[ruby-core:49548]
Status:Assigned
Priority:Normal
Assignee:Shyouhei Urabe
Category:core
Target version:-
ruby -v:1.9.3 Backport:

Description

=begin
From github: https://github.com/ruby/ruby/pull/139

Before patch

1.9.3p125 :001 > requirerelative "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

require_relative_from_evail_and_irb.patch Magnifier (3.35 KB) Zachary Scott, 11/19/2012 11:10 AM


Related issues

Related to ruby-trunk - Bug #4487: require_relative fails in an eval'ed file Assigned 03/10/2011

History

#1 Updated by Shyouhei Urabe over 1 year ago

  • Description updated (diff)

Please read this related issue. http://bugs.ruby-lang.org/issues/4487

#2 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Open to Assigned

Also available in: Atom PDF