From a2e6b6b52593bd02e0de53580206fb6942643bda Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Sun, 25 Feb 2024 18:19:43 -0500 Subject: Unescaped backslashes. --- src/lpm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lpm.lua') diff --git a/src/lpm.lua b/src/lpm.lua index 2955e68..f13e662 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1396,7 +1396,7 @@ function Bottle:run(args) local path = self.local_path .. PATHSEP .. "lite-xl" .. EXECUTABLE_EXTENSION if not system.stat(path) then error("cannot find bottle executable " .. path) end local line = path .. (#args > 0 and " " or "") .. table.concat(common.map(args, function(arg) - return "'" .. arg:gsub("'", "'\"'\"'") .. "'" + return "'" .. arg:gsub("'", "'\"'\"'"):gsub("\\", "\\\\") .. "'" end), " ") log_action("Running " .. line) return os.execute(line) -- cgit v1.2.3