mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
d42d19059d
commit
9afc6a981d
Notes:
git
2024-09-13 16:52:10 +00:00
7 changed files with 65 additions and 18 deletions
2
ruby.c
2
ruby.c
|
@ -2155,6 +2155,8 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result)
|
|||
|
||||
pm_options_t *options = &result->options;
|
||||
pm_options_line_set(options, 1);
|
||||
pm_options_main_script_set(options, true);
|
||||
|
||||
const bool read_stdin = (strcmp(opt->script, "-") == 0);
|
||||
|
||||
if (read_stdin) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue