diff --git a/ChangeLog b/ChangeLog index ab6fff716d..d0bccf3b26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 25 17:05:15 2005 NAKAMURA Usaku + + * ruby.c (proc_options): correct -T option in RUBYOPT. + fixed: [ruby-dev:25512] + Tue Jan 25 14:05:52 2005 Hidetoshi NAGAI * ext/tcltklib/tcltklib.c: fix SEGV bug; trouble on canceling remained diff --git a/ruby.c b/ruby.c index 773ef7b814..48b8dba24f 100644 --- a/ruby.c +++ b/ruby.c @@ -709,11 +709,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;