1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Change the way the IRB is invoked as an external process

https://github.com/ruby/irb/commit/f4bcdf4375
This commit is contained in:
aycabta 2020-08-18 12:38:07 +09:00
parent 172d44e809
commit 01b6c520f5

View file

@ -117,8 +117,7 @@ module TestIRB
with_temp_stdio do |stdin, stdout|
replace_stdio(stdin.path, stdout.path) do
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
cmds = %W[ruby] + bundle_exec + %W[-W0 -rirb -e 'IRB.start(__FILE__)']
cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)']
yield(stdin, stdout)
stdin.close
system(cmds.join(' '))