aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/man.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-11-26 18:28:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-11-26 18:28:28 +1300
commit55a839a0a8c3c18e6476cdb6b9b640dc16a6a98b (patch)
tree3ff0a5a66f14ee480144177c4b161ba22c4853cb /bash/bashrc.d/man.bash
parentThis apostrophe breaks the subshell on Bash 4.1 (diff)
downloaddotfiles-55a839a0a8c3c18e6476cdb6b9b640dc16a6a98b.tar.gz
dotfiles-55a839a0a8c3c18e6476cdb6b9b640dc16a6a98b.zip
Ignore stderr from manpath(1)
Diffstat (limited to 'bash/bashrc.d/man.bash')
-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 201ebe64..e091e60e 100644
--- a/bash/bashrc.d/man.bash
+++ b/bash/bashrc.d/man.bash
@@ -39,7 +39,7 @@ _man() {
declare -a pages
# Break manpath(1) output into an array of paths
- IFS=: read -a manpaths -r < <(manpath)
+ IFS=: read -a manpaths -r < <(manpath 2>/dev/null)
# Iterate through the manual page paths and add every manual page we find
for manpath in "${manpaths[@]}" ; do