mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 21:22:00 +03:00
Fix some posix compliance in man.kak
This commit is contained in:
parent
2ca1784495
commit
aa6f7c82e9
@ -38,7 +38,7 @@ def -params .. \
|
||||
prefix=${1:0:${kak_pos_in_token}}
|
||||
for page in /usr/share/man/*/${prefix}*.[1-8]*; do
|
||||
candidate=$(basename ${page%%.[1-8]*})
|
||||
pagenum=$(sed -r 's,^.+/.+\.([1-8][^.]*)\..+$,\1,' <<< $page)
|
||||
pagenum=$(echo $page | sed 's/^.*\([1-8][a-z]*\)$/\1/')
|
||||
case $candidate in
|
||||
*\*) ;;
|
||||
*) echo $candidate\($pagenum\);;
|
||||
|
Loading…
Reference in New Issue
Block a user