svn commit: r324233 - stable/11/usr.bin/man
Baptiste Daroussin
bapt at FreeBSD.org
Tue Oct 3 08:14:26 UTC 2017
Author: bapt
Date: Tue Oct 3 08:14:25 2017
New Revision: 324233
URL: https://svnweb.freebsd.org/changeset/base/324233
Log:
MFC r324100:
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
Modified:
stable/11/usr.bin/man/man.sh
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/man/man.sh
==============================================================================
--- stable/11/usr.bin/man/man.sh Tue Oct 3 07:03:11 2017 (r324232)
+++ stable/11/usr.bin/man/man.sh Tue Oct 3 08:14:25 2017 (r324233)
@@ -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-stable-11
mailing list