Escape '(' in shell parameter expansion in man.kak
Not escaping '(' here led to a 'no closing quote' error on OpenBSD.
This commit is contained in:
parent
09e1ec97a9
commit
11dfd4994b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user