From e988866bda1996101ff8792ad959352d516e9e95 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 10 Jul 2001 08:10:24 +0000 Subject: remove not only numeric suffixes, but also `.n' and the like (15352) --- Completion/Unix/Command/_man | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Command/_man') diff --git a/Completion/Unix/Command/_man b/Completion/Unix/Command/_man index 24bcf7d38..0bdd8db8b 100644 --- a/Completion/Unix/Command/_man +++ b/Completion/Unix/Command/_man @@ -47,8 +47,7 @@ _man_pages() { pages=( $dirs ) compfiles -p pages '' '' "$matcher" '' dummy '*' - - pages=( $~pages(:t:r) ) + pages=( ${^~pages}(N:t:r) ) (($#mrd)) && pages[$#pages+1]=($(awk $awk $mrd)) @@ -56,7 +55,7 @@ _man_pages() { # beginning with .<->: that handles problem cases like files called # `POSIX.1.5'. - compadd "$@" - ${pages%.<->*} + compadd "$@" - ${pages%.(?|<->*)} } _man "$@" -- cgit 1.4.1