mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 13:04:22 +00:00
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
12 lines
182 B
Ruby
Executable File
12 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__)
|