mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19991292
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a3f29338ad
commit
4263bb432a
8 changed files with 26 additions and 10 deletions
7
ruby.c
7
ruby.c
|
@ -266,11 +266,12 @@ process_sflag()
|
|||
|
||||
n = RARRAY(rb_argv)->len;
|
||||
args = RARRAY(rb_argv)->ptr;
|
||||
while (n--) {
|
||||
char *s = STR2CSTR(*args);
|
||||
while (n > 0) {
|
||||
char *s = STR2CSTR(*args++);
|
||||
char *p;
|
||||
|
||||
if (s[0] != '-') continue;
|
||||
if (s[0] != '-') break;
|
||||
n--;
|
||||
if (s[1] == '-' && s[2] == '\0') break;
|
||||
|
||||
s[0] = '$';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue