1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-12-05 03:09:34 +00:00
parent af54c1694c
commit 504e6b4dac
3 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Dec 5 12:09:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]
Sun Dec 5 11:27:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (load_file_internal): decrement for ungotten line.

View file

@ -207,7 +207,7 @@ module IRB
IRB.print_usage
exit 0
when "--"
if opt = ARGV.shfit
if opt = ARGV.shift
@CONF[:SCRIPT] = opt
$0 = opt
end

12
test/irb/test_option.rb Normal file
View file

@ -0,0 +1,12 @@
require 'test/unit'
require_relative '../ruby/envutil'
module TestIRB
class TestOption < Test::Unit::TestCase
def test_end_of_option
bug4117 = '[ruby-core:33574]'
status = assert_in_out_err(%w[-rirb -e IRB.start(__FILE__) -- --], "", //, [], bug4117)
assert(status.success?, bug4117)
end
end
end