[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix Lua errors (0477e7998)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Oct 17 17:13:46 CEST 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/0477e7998383499ef2136aa6b7c0722df0500e03

>---------------------------------------------------------------

commit 0477e7998383499ef2136aa6b7c0722df0500e03
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Oct 17 16:13:34 2019 +0100

    Fix Lua errors


>---------------------------------------------------------------

0477e7998383499ef2136aa6b7c0722df0500e03
 l3kernel/l3luatex.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index 3bb7c3238..28fa4a563 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -508,11 +508,11 @@ l3kernel.strcmp = strcmp
 local function shellescape(cmd)
   local status,msg = os_exec(cmd)
   if status == nil then
-    write_nl("log","runsystem(" .. cmd .. ")...(" .. msg .. ")\n" )
-  elseif status = 0 then
-    write_nl("log","runsystem(" .. cmd .. ")...executed\n" )
+    write_nl("log","runsystem(" .. cmd .. ")...(" .. msg .. ")\n")
+  elseif status == 0 then
+    write_nl("log","runsystem(" .. cmd .. ")...executed\n")
   else
-    write_nl("log","runsystem(" .. cmd .. ")...failed .. " (msg or "") .. "\n" )
+    write_nl("log","runsystem(" .. cmd .. ")...failed " .. (msg or "") .. "\n")
   end
 end
 l3kernel.shellescape = shellescape





More information about the latex3-commits mailing list