ruby-changes:18064
From: nobu <ko1@a...>
Date: Sun, 5 Dec 2010 12:09:40 +0900 (JST)
Subject: [ruby-changes:18064] Ruby:r30085 (trunk): * lib/irb/init.rb (IRB.parse_opts): fix typo.
nobu 2010-12-05 12:09:34 +0900 (Sun, 05 Dec 2010) New Revision: 30085 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30085 Log: * lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574] Added directories: trunk/test/irb/ Added files: trunk/test/irb/test_option.rb Modified files: trunk/ChangeLog trunk/lib/irb/init.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30084) +++ ChangeLog (revision 30085) @@ -1,3 +1,7 @@ +Sun Dec 5 12:09:27 2010 Nobuyoshi Nakada <nobu@r...> + + * lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574] + Sun Dec 5 11:27:08 2010 Nobuyoshi Nakada <nobu@r...> * ruby.c (load_file_internal): decrement for ungotten line. Index: lib/irb/init.rb =================================================================== --- lib/irb/init.rb (revision 30084) +++ lib/irb/init.rb (revision 30085) @@ -207,7 +207,7 @@ IRB.print_usage exit 0 when "--" - if opt = ARGV.shfit + if opt = ARGV.shift @CONF[:SCRIPT] = opt $0 = opt end Index: test/irb/test_option.rb =================================================================== --- test/irb/test_option.rb (revision 0) +++ test/irb/test_option.rb (revision 30085) @@ -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 Property changes on: test/irb/test_option.rb ___________________________________________________________________ Added: svn:eol-style + LF -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/