Actions
Bug #20071
closedReading code from stdin SEGV's when `--parser=prism`
Bug #20071:
Reading code from stdin SEGV's when `--parser=prism`
Description
The following examples all SEGV on master.
ruby --parser=prism
cat test_code.rb | ruby --parser=prism
ruby --parser=prism < test_code.rb
This is because the prism setup code in process_options either assumes that a file has been passed or an explicit string with -e and does not handle the case where the input is expected to come from stdin.
Actions