From 6f5d01cee63d25d2baa00a7bae907e8d118c5d66 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 30 Aug 2021 20:23:25 +0200 Subject: 2021-08-30 19:55:00 --- scripts/context/lua/mtx-context.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 2c142bf49..d2e63640a 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -20,18 +20,18 @@ local lpegpatterns, lpegmatch, Cs, P = lpeg.patterns, lpeg.match, lpeg.Cs, lpeg. local getargument = environment.getargument or environment.argument local setargument = environment.setargument -local filejoinname = file.join -local filebasename = file.basename -local filenameonly = file.nameonly -local filepathpart = file.pathpart -local filesuffix = file.suffix -local fileaddsuffix = file.addsuffix -local filereplacesuffix = file.replacesuffix -local removesuffix = file.removesuffix -local validfile = lfs.isfile -local removefile = os.remove -local renamefile = os.rename -local formatters = string.formatters +local filejoinname = file.join +local filebasename = file.basename +local filenameonly = file.nameonly +local filepathpart = file.pathpart +local filesuffix = file.suffix +local fileaddsuffix = file.addsuffix +local filenewsuffix = file.replacesuffix +local removesuffix = file.removesuffix +local validfile = lfs.isfile +local removefile = os.remove +local renamefile = os.rename +local formatters = string.formatters local application = logs.application { name = "mtx-context", @@ -972,7 +972,7 @@ function scripts.context.run(ctxdata,filename) end -- if environment.arguments["ansilog"] then - local logfile = filereplacesuffix(jobname,"log") + local logfile = filenewsuffix(jobname,"log") local logdata = io.loaddata(logfile) or "" if logdata ~= "" then io.savedata(logfile,(gsub(logdata,"%[.-m",""))) -- cgit v1.2.3