You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameter "readwhat" is not used, but is referenced from the parallel module (see the code for forking).
Proposed fix:
function sys.fexecute(cmd, readwhat)
*+ readwhat = readwhat or 'all'
local tmpfile = os.tmpname()
local cmd = cmd .. ' 1>'.. tmpfile..' 2>' .. tmpfile
os.execute(cmd)
local file = G.assert(io.open(tmpfile))
*- local s = file:read('all') + local s= file:read(readwhat)
file:close()
s = s:gsub('^%s',''):gsub('%s_$','')
os.execute('rm ' .. tmpfile)
return s
end
The text was updated successfully, but these errors were encountered:
The parameter "readwhat" is not used, but is referenced from the parallel module (see the code for forking).
Proposed fix:
function sys.fexecute(cmd, readwhat)
*+ readwhat = readwhat or 'all'
local tmpfile = os.tmpname()
local cmd = cmd .. ' 1>'.. tmpfile..' 2>' .. tmpfile
os.execute(cmd)
local file = G.assert(io.open(tmpfile))
*- local s = file:read('all')
+ local s= file:read(readwhat)
file:close()
s = s:gsub('^%s',''):gsub('%s_$','')
os.execute('rm ' .. tmpfile)
return s
end
The text was updated successfully, but these errors were encountered: