From 6143e5819007fc358395dc9490c8b27499c5a70c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 10 Jan 2009 14:13:07 +0100 Subject: [PATCH] awful.completion: add more chars to bash_escape Signed-off-by: Julien Danjou --- lib/awful/completion.lua.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/awful/completion.lua.in b/lib/awful/completion.lua.in index accbec13..ef1200b4 100644 --- a/lib/awful/completion.lua.in +++ b/lib/awful/completion.lua.in @@ -40,8 +40,12 @@ function bashcomp_load(src) end local function bash_escape(str) - res = str:gsub(" ", "\\ ") - return res + str = str:gsub(" ", "\\ ") + str = str:gsub("%[", "\\[") + str = str:gsub("%]", "\\]") + str = str:gsub("%(", "\\(") + str = str:gsub("%)", "\\)") + return str end --- Use bash completion system to complete command and filename.