diff options
Diffstat (limited to 'Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua')
-rw-r--r-- | Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua b/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua index 69b8964e712..c11c0f02ec9 100644 --- a/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua +++ b/Master/texmf-dist/scripts/oberdiek/pdftexcmds.lua @@ -38,7 +38,7 @@ module("oberdiek.pdftexcmds", package.seeall) local systemexitstatus function getversion() - tex.write("2011/04/10 v0.14") + tex.write("2011/04/16 v0.15") end function strcmp(A, B) if A == B then @@ -271,14 +271,20 @@ function filemdfivesum(filename) end function shellescape() if os.execute then - local result = os.execute() - if result == 0 then - tex.write("0") + if status + and status.luatex_version + and status.luatex_version >= 70 then + tex.write(os.execute()) else - if result == nil then + local result = os.execute() + if result == 0 then tex.write("0") else - tex.write("1") + if result == nil then + tex.write("0") + else + tex.write("1") + end end end else |