From 171f7b525a5f7ddfb1631501cbc2d09722de4018 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 12 Apr 2019 18:03:49 +0200 Subject: 2019-04-12 17:51:00 --- scripts/context/lua/mtx-context.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts/context/lua/mtx-context.lua') diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 4466992fd..17867234d 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -876,11 +876,9 @@ function scripts.context.run(ctxdata,filename) -- report("run %s: %s",currentrun,command) print("") -- cleaner, else continuation on same line --- local returncode, errorstring = os.spawn(command) local returncode = os.execute(command) -- todo: remake format when no proper format is found if not returncode then --- report("fatal error: no return code, message: %s",errorstring or "?") report("fatal error: no return code") if resultname then result_save_error(oldbase,newbase) @@ -929,7 +927,7 @@ function scripts.context.run(ctxdata,filename) local command = luatex_command(l_flags,c_flags,mainfile,a_engine) -- report("arrange run: %s",command) - local returncode, errorstring = os.spawn(command) + local returncode, errorstring = os.execute(command) if not returncode then report("fatal error: no return code, message: %s",errorstring or "?") os.exit(1) @@ -1052,7 +1050,7 @@ function scripts.context.pipe() -- still used? report("entering scrollmode using '%s' with optionfile, end job with \\end",filename) end local command = luatex_command(l_flags,c_flags,filename) - os.spawn(command) + os.execute(command) if getargument("purge") then scripts.context.purge_job(filename) elseif getargument("purgeall") then -- cgit v1.2.3