svn commit: r324100 - head/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Fri Sep 29 07:44:49 UTC 2017
Author: bapt
Date: Fri Sep 29 07:44:48 2017
New Revision: 324100
URL: https://svnweb.freebsd.org/changeset/base/324100
Log:
man(1): silent the output of mandoc when testing
This reduce the spam a user may face when mandoc tries to
figure out if it can renders a manpage or fallback on groff(1)
Reported by: bdrewery
MFC after: 3 days
Modified:
head/usr.bin/man/man.sh
Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh Fri Sep 29 06:36:19 2017 (r324099)
+++ head/usr.bin/man/man.sh Fri Sep 29 07:44:48 2017 (r324100)
@@ -333,7 +333,7 @@ man_display_page() {
if [ -n "$use_width" ]; then
mandoc_args="-O width=${use_width}"
fi
- testline="mandoc -Tlint -Wunsupp 2>/dev/null"
+ testline="mandoc -Tlint -Wunsupp >/dev/null 2>&1"
if [ -n "$tflag" ]; then
pipeline="mandoc -Tps $mandoc_args"
else
More information about the svn-src-head
mailing list