[Bug 274343] man(1) fails to render manpages that work correctly both with gnroff and mdocml

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Aug 2026 13:24:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274343

--- Comment #8 from Wolfram Schneider <wosch@FreeBSD.org> ---
@mirabilos: Sorry, I forgot to mention that I tested with the system
/usr/bin/man command on FreeBSD as well before closing the issue.

 /usr/bin/man -l man1/mksh.1.gz|head
MKSH(1)                 FreeBSD General Commands Manual                MKSH(1)

NAME
     mksh, sh - MirBSD Korn shell

SYNOPSIS
     mksh [-+abCefhiklmnprUuvXx] [-T [!]tty | -] [-+o option] [-c string |
          -s | file [argument ...]]
     builtin-name [argument ...]


Which looks fine to me.

On FreeBSD, the /usr/bin/man is a shell script which tries to find the real
path of a manpage, and then call mandoc or groff to render the manpage.

/usr/bin/gzcat man1/mksh.1.gz | mandoc | less -s

or:

/usr/bin/gzcat man1/mksh.1.gz | tbl | groff -S -P-h -Wall -mtty-char -mandoc
-Tascii -P-c | less -s

-- 
You are receiving this mail because:
You are the assignee for the bug.