summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index 83fbc721769..9649b69af48 100644
--- a/ruby.c
+++ b/ruby.c
@@ -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;
}