From dca13e2bf7b7efeb2841a039e3cfd7b5cd650a7b Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 8 Dec 2020 09:00:04 -0800 Subject: Make ruby -We the same as ruby -W -e This changes the behavior, which I'm not sure is acceptable. However, it's odd to allow an option to be combined, but change the behavior of the option when combined. --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index ebea8ccd36..fc9adf775d 100644 --- a/ruby.c +++ b/ruby.c @@ -1140,7 +1140,7 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt) if (*++s) { v = scan_oct(s, 1, &numlen); if (numlen == 0) - v = 1; + v = 2; s += numlen; } if (!opt->warning) { -- cgit v1.2.3