diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-25 08:10:33 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-25 08:10:33 +0000 |
| commit | 8d1f38c173e15b8216e15a1e735d1ed4ff643709 (patch) | |
| tree | f06ae2820bc43cc59c8d277819236417b40aead9 /ruby.c | |
| parent | 328ce07c0686f621b8acafb21f9c4fc1e6a52e51 (diff) | |
| download | ruby-8d1f38c173e15b8216e15a1e735d1ed4ff643709.tar.gz ruby-8d1f38c173e15b8216e15a1e735d1ed4ff643709.tar.xz ruby-8d1f38c173e15b8216e15a1e735d1ed4ff643709.zip | |
* ruby.c (proc_options): correct -T option in RUBYOPT.
fixed: [ruby-dev:25512]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
| -rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
