From 32747588ed25c6157967b11536a1511ce6f16e8d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 19 Mar 2016 22:53:45 +1300 Subject: Complete man pages only for exact section match --- bash/bashrc.d/man.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/bashrc.d/man.bash b/bash/bashrc.d/man.bash index 45cb02d0..99c38b67 100644 --- a/bash/bashrc.d/man.bash +++ b/bash/bashrc.d/man.bash @@ -37,7 +37,7 @@ _man() { for manpath in "${manpaths[@]}" ; do [[ $manpath ]] || continue if [[ $section ]] ; then - for page in "$manpath"/"$subdir"/"$word"*."$section"*([^.])?(.[glx]z|.bz2|.lzma|.Z) ; do + for page in "$manpath"/"$subdir"/"$word"*."$section"?(.[glx]z|.bz2|.lzma|.Z) ; do pages[${#pages[@]}]=$page done else -- cgit v1.2.3