From 4fe2ca38c1cde063b09d8e015e64f8964ebb25b4 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Tue, 12 Dec 2017 11:32:37 +0000 Subject: [PATCH] irb/init.rb: make sure ARGV refers to toplevel one git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/init.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/irb/init.rb b/lib/irb/init.rb index c9f927fdd8..db03340a69 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -13,7 +13,7 @@ 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: end # option analyzing - def IRB.parse_opts(argv: ARGV) + def IRB.parse_opts(argv: ::ARGV) load_path = [] while opt = argv.shift case opt