Project

General

Profile

Actions

Bug #7391

closed

Allow to use require_relative from eval and irb environment

Added by zzak (zzak _) over 11 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.3
Backport:
[ruby-core:49548]

Description

=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


Files


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #4487: require_relative fails in an eval'ed fileClosedmatz (Yukihiro Matsumoto)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0