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:
parent
172d44e809
commit
01b6c520f5
1 changed files with 1 additions and 2 deletions
|
@ -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(' '))
|
||||
|
|
Loading…
Reference in a new issue