aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lpm.lua2
1 files changed, 1 insertions, 1 deletions
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)