diff options
author | st0012 <stan001212@gmail.com> | 2022-01-17 15:17:18 +0000 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-01-18 15:56:48 +0900 |
commit | 3fb1f411ed8dcae693c2e9bdb68f4e9815cbb5f1 (patch) | |
tree | 633db8177c92fe06da75b65e077d6ecc8e8ede5f | |
parent | eb98275c967d8938526966fe53e52f5a10249492 (diff) |
[ruby/irb] require_relative can't be used for default gems' exe files
The `exe` folder and `lib` folder of default gems don't locate under the
same place. While `exe/irb` will be under the gem folder, `irb.rb` will be
under `lib/ruby/VERSION/`.
So `require_relative` will make `irb` unuseable when shipped with Ruby.
Related discussion in the comments: https://github.com/ruby/irb/pull/335
https://github.com/ruby/irb/commit/99d3aa979d
-rwxr-xr-x | libexec/irb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/irb b/libexec/irb index ffc97867d0..c64ee85fbd 100755 --- a/libexec/irb +++ b/libexec/irb @@ -6,6 +6,6 @@ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # -require_relative '../lib/irb' +require "irb" IRB.start(__FILE__) |