diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-24 10:37:15 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-12-24 10:37:15 +1300 |
commit | 824afd4f83a50e46d4e103637cfc6db210ec688a (patch) | |
tree | c4e1099248c73bec56b8306863d5ccc6e58e7b50 /bash | |
parent | Update submodules (diff) | |
download | dotfiles-824afd4f83a50e46d4e103637cfc6db210ec688a.tar.gz dotfiles-824afd4f83a50e46d4e103637cfc6db210ec688a.zip |
Improve pattern matching a bit
Diffstat (limited to 'bash')
-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 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 |