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

tool/runruby.rb: exec ruby-runner

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-05-29 06:39:42 +00:00
parent d4408a3d8b
commit 5689f7c7e4

View file

@ -97,10 +97,9 @@ end
ENV.update env
cmd = [ruby]
cmd = [runner || ruby]
cmd.concat(ARGV)
cmd.unshift(*precommand) unless precommand.empty?
cmd.push(:close_others => false)
if show
require 'shellwords'
@ -108,4 +107,4 @@ if show
puts Shellwords.join(cmd)
end
exec(*cmd)
exec(*cmd, close_others: false)