-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: Base System
X-Bugzilla-Component: bin
X-Bugzilla-Version: CURRENT
X-Bugzilla-Keywords:
X-Bugzilla-Severity: Affects Some People
X-Bugzilla-Who: wosch@FreeBSD.org
X-Bugzilla-Status: New
X-Bugzilla-Resolution:
X-Bugzilla-Priority: ---
X-Bugzilla-Assigned-To: bugs@FreeBSD.org
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter
Message-ID:
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/
Auto-Submitted: auto-generated
List-Id: Bug reports
List-Archive: https://lists.freebsd.org/archives/freebsd-bugs
List-Help:
List-Post:
List-Subscribe:
List-Unsubscribe:
Sender: owner-freebsd-bugs@FreeBSD.org
MIME-Version: 1.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279182
Bug ID: 279182
Summary: man(1) needs to check for .so files not only in the
first line
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: wosch@FreeBSD.org
Some manual pages have a copyright notice or commit id before including oth=
er
files with the .so macro.
We need to skip comments and empty lines at the beginning of the manpage wh=
ile
checking for the first .so macro.
e.g.:
zcat FreeBSD-13.3-RELEASE/man/man3/ibnd_debug.3.gz
.\".TH IBND_DEBUG 3 "Aug 04, 2008" "OpenIB" "OpenIB Programmer's Manual"
.so man3/ibnd_discover_fabric.3
Right now man(1) checks only the first line of a manpage:
line=3D$($cattool "$manpage" 2>/dev/null | head -n1)
this should be changed to:
line=3D$($cattool "$manpage" 2>/dev/null | grep -E -m1 -v '^\.\\"[ ]*|^[ ]*=
$')
--=20
You are receiving this mail because:
You are the assignee for the bug.=