aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:37:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-24 10:37:15 +1300
commit824afd4f83a50e46d4e103637cfc6db210ec688a (patch)
treec4e1099248c73bec56b8306863d5ccc6e58e7b50 /bash/bashrc.d
parentUpdate submodules (diff)
downloaddotfiles-824afd4f83a50e46d4e103637cfc6db210ec688a.tar.gz
dotfiles-824afd4f83a50e46d4e103637cfc6db210ec688a.zip
Improve pattern matching a bit
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 b88442d1..45cb02d0 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