From 81b604fb005b2dfa9601e0dabcdacfca6d8f3fba Mon Sep 17 00:00:00 2001 From: st0012 Date: Sun, 16 Jan 2022 22:20:05 +0000 Subject: [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 --- libexec/irb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec') 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__) -- cgit v1.2.3