1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/libexec/irb
st0012 3fb1f411ed [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
2022-01-18 15:56:48 +09:00

11 lines
182 B
Ruby
Executable file

#!/usr/bin/env ruby
#
# irb.rb - interactive ruby
# $Release Version: 0.9.6 $
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
require "irb"
IRB.start(__FILE__)