diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ruby.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Dec 13 12:41:27 2000 WATANABE Hirofumi <eban@ruby-lang.org> + + * ruby.c (proc_options): accept "--^M" for DOS line endings. + Tue Dec 12 15:45:42 2000 Yukihiro Matsumoto <matz@ruby-lang.org> * parse.y (newline_node): cancel newline unification. @@ -576,7 +576,7 @@ proc_options(argc, argv) goto reswitch; case '-': - if (!s[1]) { + if (!s[1] || s[1] == '\r' && !s[2]) { argc--,argv++; goto switch_end; } |