Merge pull request #5999 from alpha-netzilla/fix_poppen_mode

lib/mruby/build/command.rb: narrow down poppen mode
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-05-08 17:00:28 +09:00
committed by GitHub
+1 -1
View File
@@ -341,7 +341,7 @@ module MRuby
opt << " -s" if static
cmd = %["#{filename @command}" #{opt} #{filename(infiles).map{|f| %["#{f}"]}.join(' ')}]
puts cmd if Rake.verbose
IO.popen(cmd, 'r+') do |io|
IO.popen(cmd, 'r') do |io|
out.puts io.read
end
# if mrbc execution fail, drop the file