summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-25 08:12:37 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-25 08:12:37 +0000
commit8452085ea9a00fd007251eb2773f94e1ba7b3063 (patch)
tree1a8ccfd1f5be7aea63a307f93febf8fe668173da /ruby.c
parent1d95c9a09340f96af59a6fce97a00dbeb6636970 (diff)
* ruby.c (proc_options): correct -T option in RUBYOPT. (backported
from CVS HEAD) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index 10a1813d07..763697b2f9 100644
--- a/ruby.c
+++ b/ruby.c
@@ -704,11 +704,11 @@ proc_options(argc, argv)
if (rb_safe_level() == 0 && (s = getenv("RUBYOPT"))) {
while (ISSPACE(*s)) s++;
- if (*s == '-' && *(s+1) == 'T') {
+ if (*s == 'T' || *s == '-' && *(s+1) == 'T') {
int numlen;
int v = 1;
- s += 2;
+ if (*s != 'T') ++s;
if (*++s) {
v = scan_oct(s, 2, &numlen);
if (numlen == 0) v = 1;