Correct Identifer typo in SPDX tags
packages: Add a mandoc packageMove mandoc to its own package so users can install it independently of-utilities. Put the package in the minimal set, since we also shipmanpages in minimal and "ma
packages: Add a mandoc packageMove mandoc to its own package so users can install it independently of-utilities. Put the package in the minimal set, since we also shipmanpages in minimal and "man" is a basic Unix utility.Add a pkg-triggers(5) hook to run makewhatis when new manpages areinstalled, so that apropos(1) works. This depends on a new pkg(8)feature expected to be in in the upcoming 2.3.2 release; in the meantime, this is a no-op (i.e., having an older pkg doesn't break anything,it just won't run the trigger).MFC after: 3 secondsReviewed by: baptDifferential Revision: https://reviews.freebsd.org/D52564
show more ...
man: Fix usage messagePR: 289245Fixes: 14b61b2e9317 ("man: Add -l option")
man: Add -l optionAdd a -l option which causes man to interpret all arguments as paths toopen directly rather than man pages to search for in MANPATH. See thePR for a detailed rationale.PR: 2
man: Add -l optionAdd a -l option which causes man to interpret all arguments as paths toopen directly rather than man pages to search for in MANPATH. See thePR for a detailed rationale.PR: 289245MFC after: 1 weekReviewed by: ziaee, emasteDifferential Revision: https://reviews.freebsd.org/D52385
man.sh: avoid endless looplimit the number of .so includes to a value of 32 instead of infinity.PR: 287037Differential Revision: https://reviews.freebsd.org/D51412
man: Exit cleanly on SIGPIPE.The first attempt at addressing this simply suppressed SIGPIPE, whichresulted in mandoc printing out error messages instead. This was thenreverted, but the pipefail
man: Exit cleanly on SIGPIPE.The first attempt at addressing this simply suppressed SIGPIPE, whichresulted in mandoc printing out error messages instead. This was thenreverted, but the pipefail was (correctly) left in, so man stillreturned a nonzero exit code if you quit a page before the end.PR: 223516, 279542Fixes: 14a5c1068d37, a85d870007e7MFC after: 1 weekReviewed by: ziaee, kevansDifferential Revision: https://reviews.freebsd.org/D50302
man.1: Improve search + spdxPeople are often stunned by robust manual search functionality onthe community discord, so improve introductory doc regarding search by:+ explain what search related
man.1: Improve search + spdxPeople are often stunned by robust manual search functionality onthe community discord, so improve introductory doc regarding search by:+ explain what search related flags do instead of using similies+ consolidate and standardize search options in synopsis and usage+ mention that a page or file can be specified in synopsis and example+ call regular expressions `expression`, which searches to re_format(7)+ crossreference the regular expression manual instead of egrep(1)+ improve MANPATH xref flow and explanation, matching MAILPATH in sh(1)+ mark up aditional semantics for their inclusion in aproposWhile here:+ use consistent spacing and form (Ql) for quoted literals+ clean a few linter errors regarding self xref and nospace+ reset a list width to indent for consistency with style.mdoc+ tidy examples + align files + tag spdxOutstanding:- example 3 shows no results on a typical bsdinstall'd systemMFC after: 3 daysReviewed by: elliejs, emaste, imp, Jessica Hawkwell, jlduranApproved by: imp
manpath.1: align lists + tag spdxReviewed by: mhorneMFC after: 3 daysPull Request: https://github.com/freebsd/freebsd-src/pull/1458
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
man.sh: revert trapping SIGPIPEPR: 279542Fixes: 14a5c1068d37Reported by: emasteReviewed by: imp, emaste, jillesPull Request: https://github.com/freebsd/freebsd-src/pull/1283
man(1): ignore absolute path for .so includeWe want only a relative include, as ".so man1/foobar.1"MFC after: 1 week
man(1) needs to check for .so files not only in the first linePR: 279182Some manual pages have a copyright notice or commit id before includingother files with the .so macro. We need to skip comm
man(1) needs to check for .so files not only in the first linePR: 279182Some manual pages have a copyright notice or commit id before includingother files with the .so macro. We need to skip comments and empty linesat the beginning of the manpage while checking for the first .so macro.MFC after: 1 week
man: the exists function needs to validate the first parameterThis fixes an issue with the ".so " macro for FreeBSDports manual pages.PR: 275978Reported by: Jamie Landeg-Jones <jamie@catflap.or
man: the exists function needs to validate the first parameterThis fixes an issue with the ".so " macro for FreeBSDports manual pages.PR: 275978Reported by: Jamie Landeg-Jones <jamie@catflap.org>MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D45231 (discussion)
man: do not ignore the exit status of roff toolsPR: 223516Approved by: emaste, baptDifferential Revision: https://reviews.freebsd.org/D44798
man: fix redirect for locales and file argumentsUse the locale-specific path for localized pages and the appropriate parentdirectory for file arguments when handling redirects.Signed-off-by: Moh
man: fix redirect for locales and file argumentsUse the locale-specific path for localized pages and the appropriate parentdirectory for file arguments when handling redirects.Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/1019
man: support special characters in filenamesman.sh needs to handle double quotes and sub shell characteras '`' '$' etc.PR: 275967Reviewed by: baptMFC after: 1 weekDifferential Revision: htt
man: support special characters in filenamesman.sh needs to handle double quotes and sub shell characteras '`' '$' etc.PR: 275967Reviewed by: baptMFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D43453
man: avoid unportable use of utilitiesecho -e is not portable. It can be replaced by printf %b (it worksonly with the /bin/sh built-in echo, not /bin/echo anyway).head -# is not portable, but hea
man: avoid unportable use of utilitiesecho -e is not portable. It can be replaced by printf %b (it worksonly with the /bin/sh built-in echo, not /bin/echo anyway).head -# is not portable, but head -n # is.Replace these two things in three places total.Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>Reviewed by: impPull Request: https://github.com/freebsd/freebsd-src/pull/1062
man(1): support spaces in filenamesThe globbing function in exists() needs to handle white spaces.PR: 275978Reviewed by: kevans, bapt, emasteMFC after: 1 week
fix using man(1) with multiple pagesPR: 275978Reported by: Mohamed AkramFixes: 789480702e490818244af11279868ba4f3dabe6bMFC after: 1 week
support spaces in filenamesPR: 275978MFC after: 1 week
improve handling of shell metacharacters in filenamesPR: 275967MFC after: 1 week
switch groff parameter -man to -mandoc for new groff release 1.23.0PR: 273565
switch groff parameter -man to -mandocgroff 1.23.0 changed the semantics of the -man parameter, and manymanual pages are not rendered. The -mandoc parameter brings backthe old behavior, as in gro
switch groff parameter -man to -mandocgroff 1.23.0 changed the semantics of the -man parameter, and manymanual pages are not rendered. The -mandoc parameter brings backthe old behavior, as in groff 1.22.4 and earlier.PR: 273565, 273245Reviewed by: emaste, baptMFC after: 1 week for all supported branches (stable/12, 13, 14)Differential Revision: https://reviews.freebsd.org/D41737
Remove $FreeBSD$: two-line nroff patternRemove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
1234