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
commit6242595aba8ee59dbc25770ed96b9fd4a6cae0b1 (patch)
treea212ee4a33400380e7950ba11ab39166247538f3 /ruby.c
parent34238fc2e0d18aae9e6a0012303e26da2cfb502a (diff)
* ruby.c (proc_option): fix shift ARGV issue
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@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 0228abac59..208e7e9705 100644
--- a/ruby.c
+++ b/ruby.c
@@ -702,7 +702,9 @@ proc_options(argc, argv)
if (!script) script = argv[0];
}
}
- argc--; argv++;
+ if (!e_script) {
+ argc--; argv++;
+ }
}
ruby_script(script);