Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2017 08:14:25 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324233 - stable/11/usr.bin/man
Message-ID:  <201710030814.v938EPo3018245@repo.freebsd.org>

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



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