File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ Tue Jan 25 17:11:51 2005 NAKAMURA Usaku <usa@ruby-lang.org>
2
+
3
+ * ruby.c (proc_options): correct -T option in RUBYOPT. (backported
4
+ from CVS HEAD)
5
+
1
6
Tue Jan 25 14:05:52 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2
7
3
8
* ext/tcltklib/tcltklib.c: fix SEGV bug; trouble on canceling remained
Original file line number Diff line number Diff line change @@ -704,11 +704,11 @@ proc_options(argc, argv)
704
704
705
705
if (rb_safe_level () == 0 && (s = getenv ("RUBYOPT" ))) {
706
706
while (ISSPACE (* s )) s ++ ;
707
- if (* s == '-' && * (s + 1 ) == 'T' ) {
707
+ if (* s == 'T' || * s == ' -' && * (s + 1 ) == 'T' ) {
708
708
int numlen ;
709
709
int v = 1 ;
710
710
711
- s += 2 ;
711
+ if ( * s != 'T' ) ++ s ;
712
712
if (* ++ s ) {
713
713
v = scan_oct (s , 2 , & numlen );
714
714
if (numlen == 0 ) v = 1 ;
You can’t perform that action at this time.
0 commit comments