summaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-03-11 06:31:16 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-03-11 06:31:16 +0000
commit6970ca8f1e7ed1fc8791d6854b613ef197b26f84 (patch)
tree2142c18d154feda53796413c8296fc2c2e340d82 /usr.bin/man
parent84e1ba258be2ec5e6c97ed4e065b1e61ebe6dae1 (diff)
downloadsrc-test-6970ca8f1e7ed1fc8791d6854b613ef197b26f84.tar.gz
src-test-6970ca8f1e7ed1fc8791d6854b613ef197b26f84.zip
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
Notes
Notes: svn path=/head/; revision=315056
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 2cb2a301ea0ec..ae928a1123f77 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -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