Dear all,
it seems there is a bug in the way TeXLive 2013 LuaTeX handles
shell-escape (i386-Linux). See the attached files: when running
luatex --shell-escape bug-shell-escape.tex
test 1 should pass, instead it fails: io.popen never works,
independently of the value of --shell-escape. It used to work before,
has something changed? Lua manual states that io.popen is system
dependant and might not be available on all platforms, but I guess the
error would be different if it was not available...
Thank you,
--
Elie
local test = io.popen("echo test1")
if test then
texio.write_nl("test1 passed")
else
texio.write_nl("test1 failed")
end
test = os.execute("echo test2")
if test then
texio.write_nl("test2 passed")
else
texio.write_nl("test2 failed")
end
\directlua{dofile("bug-shell-escape.lua")}
\bye