diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-19 22:53:45 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-19 22:53:45 +1300 |
commit | 32747588ed25c6157967b11536a1511ce6f16e8d (patch) | |
tree | 18ed51300601a2e909c2839c0b5a576e41da3ae2 /bash/bashrc.d | |
parent | Move to new style format, window style (diff) | |
download | dotfiles-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.bash | 2 |
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 |