1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-30 07:10:58 +02:00

21565: better handle uncompresed manpages with .[0-9] in their names.

This commit is contained in:
Clint Adams 2005-08-15 17:11:17 +00:00
parent bce534d957
commit b9d42d6a59
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-08-15 Clint Adams <clint@zsh.org>
* 21565: Completion/Unix/Command/_man: better handle uncompresed
manpages with .[0-9] in their names.
2005-08-15 Wayne Davison <wayned@users.sourceforge.net> 2005-08-15 Wayne Davison <wayned@users.sourceforge.net>
* 21609: Src/glob.c: fixed the readlink() call in statfullpath(). * 21609: Src/glob.c: fixed the readlink() call in statfullpath().

View file

@ -82,7 +82,7 @@ _man_pages() {
pages=( ${(M)dirs:#*$sect/} ) pages=( ${(M)dirs:#*$sect/} )
compfiles -p pages '' '' "$matcher" '' dummy '*' compfiles -p pages '' '' "$matcher" '' dummy '*'
pages=( ${^~pages}(N:t:r) ) pages=( ${^~pages}(N:t) )
(($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd)) (($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd))
@ -90,7 +90,7 @@ _man_pages() {
# beginning with .<->: that handles problem cases like files called # beginning with .<->: that handles problem cases like files called
# `POSIX.1.5'. # `POSIX.1.5'.
compadd "$@" - ${pages%.(?|<->*)} compadd "$@" - ${pages%.(?|<->*(|.gz|.bz2|.Z))}
} }
_man "$@" _man "$@"