From 3ea6b040afed6eea21a0b187966cf050e0502a73 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 22 Nov 2013 12:35:29 +0100 Subject: [PATCH] Mark rc/256 as construct specific to os.execute Signed-off-by: Tobias Ulmer --- generic/e2lib.lua | 2 +- local/e2-cf.lua | 2 +- local/e2-help.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generic/e2lib.lua b/generic/e2lib.lua index 4a32aa0..e388998 100644 --- a/generic/e2lib.lua +++ b/generic/e2lib.lua @@ -1096,7 +1096,7 @@ function e2lib.callcmd_pipe(cmds, infile, outfile) end -- run the command rc = os.execute(cmds[cmdidx]) - os.exit(rc/256) + os.exit(rc/256) -- XXX: os.execute end pids[pid] = cmdidx diff --git a/local/e2-cf.lua b/local/e2-cf.lua index 07eb787..59fc1f6 100644 --- a/local/e2-cf.lua +++ b/local/e2-cf.lua @@ -48,7 +48,7 @@ local function editor(file) local rc rc = os.execute(cmd) - rc = rc / 256 + rc = rc/256 -- XXX: os.execute if rc ~= 0 then return false, err.new("Editor finished with exit status %d", rc) end diff --git a/local/e2-help.lua b/local/e2-help.lua index 8d2237d..dc7dfbf 100644 --- a/local/e2-help.lua +++ b/local/e2-help.lua @@ -186,7 +186,7 @@ local function display_man_page(doc) table.insert(cmd, e2lib.shquote(e2lib.join(doc.path, doc.filename))) rc = os.execute(table.concat(cmd, ' ')) - rc = rc / 256 + rc = rc/256 -- XXX: os.execute if rc ~= 0 then return false, err.new("man page viewer terminated with exit code %d", rc) -- 2.39.5