Remove the warning when MANPATH is set in the environment

The MANPATH environment variable behaviour is documented properly in the manpage
and it now has extended to new feature that allows to make MANPATH env variable
extending the default search path rather than overwriting it making the warning
painful

Reported by:	kargl
MFC after:	1 week
This commit is contained in:
Baptiste Daroussin 2017-03-11 06:31:16 +00:00
parent 84e1ba258b
commit 6970ca8f1e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315056

View file

@ -261,10 +261,6 @@ manpath_usage() {
# Usage: manpath_warnings
# Display some warnings to stderr.
manpath_warnings() {
if [ -z "$Lflag" -a -n "$MANPATH" ]; then
echo "(Warning: MANPATH environment variable set)" >&2
fi
if [ -n "$Lflag" -a -n "$MANLOCALES" ]; then
echo "(Warning: MANLOCALES environment variable set)" >&2
fi