Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2017 07:44:48 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324100 - head/usr.bin/man
Message-ID:  <201709290744.v8T7imbn017935@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709290744.v8T7imbn017935>