svn commit: r315056 - head/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Sat Mar 11 06:31:17 UTC 2017
Author: bapt
Date: Sat Mar 11 06:31:16 2017
New Revision: 315056
URL: https://svnweb.freebsd.org/changeset/base/315056
Log:
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
Modified:
head/usr.bin/man/man.sh
Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh Sat Mar 11 06:27:06 2017 (r315055)
+++ head/usr.bin/man/man.sh Sat Mar 11 06:31:16 2017 (r315056)
@@ -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
More information about the svn-src-all
mailing list