svn commit: r287987 - head/usr.bin/man

Baptiste Daroussin bapt at FreeBSD.org
Sat Sep 19 16:00:51 UTC 2015


Author: bapt
Date: Sat Sep 19 16:00:50 2015
New Revision: 287987
URL: https://svnweb.freebsd.org/changeset/base/287987

Log:
  Restore man -t for manpages rendered by mandoc
  
  Reported by:	swills

Modified:
  head/usr.bin/man/man.sh

Modified: head/usr.bin/man/man.sh
==============================================================================
--- head/usr.bin/man/man.sh	Sat Sep 19 13:12:09 2015	(r287986)
+++ head/usr.bin/man/man.sh	Sat Sep 19 16:00:50 2015	(r287987)
@@ -315,7 +315,11 @@ man_display_page() {
 		mandoc_args="-O width=${use_width}"
 	fi
 	testline="mandoc -Tlint -Wunsupp 2>/dev/null"
-	pipeline="mandoc $mandoc_args | $MANPAGER"
+	if [ -n "$tflag" ]; then
+		pipeline="mandoc -Tps $mandoc_args"
+	else
+		pipeline="mandoc $mandoc_args | $MANPAGER"
+	fi
 
 	if ! eval "$cattool $manpage | $testline" ;then
 		if which -s groff; then


More information about the svn-src-head mailing list