зеркало из https://github.com/github/ruby.git
[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:
Родитель
172d44e809
Коммит
01b6c520f5
|
@ -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(' '))
|
||||
|
|
Загрузка…
Ссылка в новой задаче