summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 12:32:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-05-22 12:32:15 +0000
commit2c9729f6207cf3f0ca6feffc81ef87436853b043 (patch)
tree8c599c9581c76016b6a5125c2ad005fb423fe5e9 /ruby.c
parent2b4c960be6839738a2c19696bc3cc40069e1dddd (diff)
downloadruby-2c9729f6207cf3f0ca6feffc81ef87436853b043.tar.gz
ruby-2c9729f6207cf3f0ca6feffc81ef87436853b043.tar.xz
ruby-2c9729f6207cf3f0ca6feffc81ef87436853b043.zip
* ruby.c (proc_options): -T consumes digits only.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index bcb21ca40..55dd7ab87 100644
--- a/ruby.c
+++ b/ruby.c
@@ -558,10 +558,11 @@ proc_options(argc, argv)
if (*++s) {
v = scan_oct(s, 2, &numlen);
if (numlen == 0) v = 1;
+ s += numlen;
}
rb_set_safe_level(v);
}
- break;
+ goto reswitch;
case 'I':
forbid_setid("-I");