summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2020-12-08 09:00:04 -0800
committerJeremy Evans <code@jeremyevans.net>2020-12-10 10:16:40 -0800
commitdca13e2bf7b7efeb2841a039e3cfd7b5cd650a7b (patch)
tree795125a73f5c292dbc6fba267cff997f34b02eb3 /ruby.c
parent699608487d2ff09bb5c610a9d1e6e13f5bd2a25e (diff)
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.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3867
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 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) {