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:
parent
d4408a3d8b
commit
5689f7c7e4
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue