diff options
author | st0012 <stan001212@gmail.com> | 2022-01-16 22:20:05 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-01-17 14:23:40 +0900 |
commit | 81b604fb005b2dfa9601e0dabcdacfca6d8f3fba (patch) | |
tree | 3a16055ae7bfb5fa70a78f64590cf5bd14a5c674 /libexec | |
parent | 804a71497187556f9fbbb66dfa602c5942224786 (diff) |
[ruby/irb] Use require_relative to require lib files
1. `require` can mislead Ruby to load system irb's files and cause
constant redefined warnings as other code loads the same module/class
from lib folder.
2. Most files already use `require_relative`.
https://github.com/ruby/irb/commit/848d339f2e
Diffstat (limited to 'libexec')
-rwxr-xr-x | libexec/irb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/irb b/libexec/irb index c64ee85fbd..ffc97867d0 100755 --- a/libexec/irb +++ b/libexec/irb @@ -6,6 +6,6 @@ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # -require "irb" +require_relative '../lib/irb' IRB.start(__FILE__) |