ruby-changes:49036
From: k0kubun <ko1@a...>
Date: Tue, 12 Dec 2017 20:32:43 +0900 (JST)
Subject: [ruby-changes:49036] k0kubun:r61151 (trunk): irb/init.rb: make sure ARGV refers to toplevel one
k0kubun 2017-12-12 20:32:37 +0900 (Tue, 12 Dec 2017) New Revision: 61151 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61151 Log: irb/init.rb: make sure ARGV refers to toplevel one Modified files: trunk/lib/irb/init.rb Index: lib/irb/init.rb =================================================================== --- lib/irb/init.rb (revision 61150) +++ lib/irb/init.rb (revision 61151) @@ -13,7 +13,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L13 module IRB # :nodoc: # initialize config - def IRB.setup(ap_path, argv: ARGV) + def IRB.setup(ap_path, argv: ::ARGV) IRB.init_config(ap_path) IRB.init_error IRB.parse_opts(argv: argv) @@ -121,7 +121,7 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/init.rb#L121 end # option analyzing - def IRB.parse_opts(argv: ARGV) + def IRB.parse_opts(argv: ::ARGV) load_path = [] while opt = argv.shift case opt -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/