Merge pull request #428 from tritao/patch-1

Fixed os.outputof to redirect standard streams to capture all output
This commit is contained in:
Samuel Surtees 2016-02-23 20:21:02 +10:00
commit a381657629

View File

@ -373,7 +373,7 @@
function os.outputof(cmd)
cmd = path.normalize(cmd)
local pipe = io.popen(cmd)
local pipe = io.popen(cmd .. " 2>&1")
local result = pipe:read('*a')
local b, exitcode = pipe:close()
if not b then