From 11dfd4994bdd1afdd7e1ed89ca135327704d85f4 Mon Sep 17 00:00:00 2001 From: codesoap Date: Fri, 7 Jun 2019 21:34:21 +0200 Subject: [PATCH] Escape '(' in shell parameter expansion in man.kak Not escaping '(' here led to a 'no closing quote' error on OpenBSD. --- rc/tools/man.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/tools/man.kak b/rc/tools/man.kak index 41d91104..d75a8188 100644 --- a/rc/tools/man.kak +++ b/rc/tools/man.kak @@ -58,9 +58,9 @@ The page can be a word, or a word directly followed by a section number between ## The completion suggestions display the page number, strip them if present case "${subject}" in *\([1-8]*\)) - pagenum="${subject##*(}" - pagenum="${pagenum%)}" - subject="${subject%%(*}" + pagenum="${subject##*\(}" + pagenum="${pagenum%\)}" + subject="${subject%%\(*}" ;; esac