bash-completion/bash-completion-manpath.patch
Siteshwar Vashisht 7a24e4ff26 Do not use $MANPATH directly
Resolves: #1495055
2018-03-14 14:41:02 +01:00

15 lines
462 B
Diff

diff --git a/completions/man b/completions/man
--- a/completions/man
+++ b/completions/man
@@ -53,9 +53,7 @@ _man()
return
fi
- local manpath="$MANPATH"
- [[ -z $manpath ]] && \
- manpath=$( manpath 2>/dev/null || command man -w 2>/dev/null )
+ local manpath=$( manpath 2>/dev/null || command man -w 2>/dev/null )
[[ -z $manpath ]] && manpath="/usr/share/man:/usr/local/share/man"
# determine manual section to search