aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-19 22:53:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-19 22:53:45 +1300
commit32747588ed25c6157967b11536a1511ce6f16e8d (patch)
tree18ed51300601a2e909c2839c0b5a576e41da3ae2 /bash/bashrc.d
parentMove to new style format, window style (diff)
downloaddotfiles-32747588ed25c6157967b11536a1511ce6f16e8d.tar.gz
dotfiles-32747588ed25c6157967b11536a1511ce6f16e8d.zip
Complete man pages only for exact section match
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/man.bash2
1 files changed, 1 insertions, 1 deletions
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