summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-03 09:59:57 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-09-03 09:59:57 +0000
commit5a5bc9e7db09b6490ffd353b0e5ef8f202c4cdad (patch)
tree65a16ca401a72e8cdb4ff2d40fc3ae8be6ff71ec /ruby.c
parent0f35b58a2fbae58a20979de77a3a642c42f41899 (diff)
* ruby.c (proc_option): fix shift ARGV issue
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index d3d0c50..b0a349e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -705,7 +705,9 @@ proc_options(argc, argv)
if (!script) script = argv[0];
}
}
- argc--; argv++;
+ if (!e_script) {
+ argc--; argv++;
+ }
}
ruby_script(script);