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

* ext/extmk.rb.in, lib/mkmf.rb: print command line in xsystem()

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2001-06-05 04:51:11 +00:00
parent 970b618e64
commit 3f9fd4191b
2 changed files with 3 additions and 1 deletions

View file

@ -82,6 +82,7 @@ def xsystem command
end
$stderr.reopen($log)
$stdout.reopen($log)
puts command
r = system(command)
$stderr.reopen($orgerr)
$stdout.reopen($orgout)

View file

@ -58,11 +58,12 @@ $orgout = $stdout.dup
def xsystem command
Config.expand(command)
if $DEBUG
print command, "\n"
puts command
return system(command)
end
$stderr.reopen($log)
$stdout.reopen($log)
puts command
r = system(command)
$stderr.reopen($orgerr)
$stdout.reopen($orgout)