Revision tags: release/14.2.0 |
|
#
46a9fb72 |
| 28-Sep-2024 |
Alexander Ziaee <ziaee@FreeBSD.org> |
man.1: Improve search + spdx
People are often stunned by robust manual search functionality on the community discord, so improve introductory doc regarding search by:
+ explain what search related
man.1: Improve search + spdx
People are often stunned by robust manual search functionality on the 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 apropos
While 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 spdx
Outstanding: - example 3 shows no results on a typical bsdinstall'd system
MFC after: 3 days Reviewed by: elliejs, emaste, imp, Jessica Hawkwell, jlduran Approved by: imp
show more ...
|
Revision tags: release/13.4.0 |
|
#
a85d8700 |
| 10-Jun-2024 |
Alexander Ziaee <concussious@runbox.com> |
man.sh: revert trapping SIGPIPE
PR: 279542 Fixes: 14a5c1068d37 Reported by: emaste Reviewed by: imp, emaste, jilles Pull Request: https://github.com/freebsd/freebsd-src/pull/1283
|
#
965fff98 |
| 03-Jun-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man(1): ignore absolute path for .so include
We want only a relative include, as ".so man1/foobar.1"
MFC after: 1 week
|
Revision tags: release/14.1.0 |
|
#
73eb5381 |
| 26-May-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man(1) needs to check for .so files not only in the first line PR: 279182
Some manual pages have a copyright notice or commit id before including other files with the .so macro. We need to skip comm
man(1) needs to check for .so files not only in the first line PR: 279182
Some manual pages have a copyright notice or commit id before including other files with the .so macro. We need to skip comments and empty lines at the beginning of the manpage while checking for the first .so macro.
MFC after: 1 week
show more ...
|
#
37be4197 |
| 20-May-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man: the exists function needs to validate the first parameter
This fixes an issue with the ".so " macro for FreeBSD ports manual pages.
PR: 275978 Reported by: Jamie Landeg-Jones <jamie@catflap.or
man: the exists function needs to validate the first parameter
This fixes an issue with the ".so " macro for FreeBSD ports manual pages.
PR: 275978 Reported by: Jamie Landeg-Jones <jamie@catflap.org> MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45231 (discussion)
show more ...
|
#
14a5c106 |
| 20-Apr-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man: do not ignore the exit status of roff tools
PR: 223516 Approved by: emaste, bapt Differential Revision: https://reviews.freebsd.org/D44798
|
Revision tags: release/13.3.0 |
|
#
e85a6f8d |
| 03-Feb-2024 |
Mohamed Akram <mohd.akram@outlook.com> |
man: fix redirect for locales and file arguments
Use the locale-specific path for localized pages and the appropriate parent directory for file arguments when handling redirects.
Signed-off-by: Moh
man: fix redirect for locales and file arguments
Use the locale-specific path for localized pages and the appropriate parent directory for file arguments when handling redirects.
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1019
show more ...
|
#
b8a484ec |
| 25-Jan-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man: support special characters in filenames
man.sh needs to handle double quotes and sub shell character as '`' '$' etc.
PR: 275967 Reviewed by: bapt
MFC after: 1 week Differential Revision: htt
man: support special characters in filenames
man.sh needs to handle double quotes and sub shell character as '`' '$' etc.
PR: 275967 Reviewed by: bapt
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43453
show more ...
|
#
ec13a838 |
| 15-Jan-2024 |
Mohamed Akram <mohd.akram@outlook.com> |
man: avoid unportable use of utilities
echo -e is not portable. It can be replaced by printf %b (it works only with the /bin/sh built-in echo, not /bin/echo anyway). head -# is not portable, but hea
man: avoid unportable use of utilities
echo -e is not portable. It can be replaced by printf %b (it works only 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: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1062
show more ...
|
#
e3c7b76f |
| 13-Jan-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
man(1): support spaces in filenames
The globbing function in exists() needs to handle white spaces.
PR: 275978 Reviewed by: kevans, bapt, emaste MFC after: 1 week
|
#
1e82d882 |
| 08-Jan-2024 |
Wolfram Schneider <wosch@FreeBSD.org> |
fix using man(1) with multiple pages
PR: 275978 Reported by: Mohamed Akram Fixes: 789480702e490818244af11279868ba4f3dabe6b MFC after: 1 week
|
#
78948070 |
| 28-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
support spaces in filenames
PR: 275978 MFC after: 1 week
|
#
c4368d03 |
| 27-Dec-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
improve handling of shell metacharacters in filenames
PR: 275967 MFC after: 1 week
|
Revision tags: release/14.0.0 |
|
#
035f7c9a |
| 07-Sep-2023 |
Wolfram Schneider <wosch@FreeBSD.org> |
switch groff parameter -man to -mandoc
groff 1.23.0 changed the semantics of the -man parameter, and many manual pages are not rendered. The -mandoc parameter brings back the old behavior, as in gro
switch groff parameter -man to -mandoc
groff 1.23.0 changed the semantics of the -man parameter, and many manual pages are not rendered. The -mandoc parameter brings back the old behavior, as in groff 1.22.4 and earlier.
PR: 273565, 273245
Reviewed by: emaste, bapt MFC after: 1 week for all supported branches (stable/12, 13, 14) Differential Revision: https://reviews.freebsd.org/D41737
show more ...
|
#
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
8a5c836b |
| 01-Aug-2023 |
Ed Maste <emaste@FreeBSD.org> |
man: fix `man -K` search
Quote re arg to grep in case it has spaces, and quote [:blank:] tr arg to avoid the shell interpreting [].
PR: 272729 Reviewed by: Mina Galić <freebsd@igalic.co> Sponsored
man: fix `man -K` search
Quote re arg to grep in case it has spaces, and quote [:blank:] tr arg to avoid the shell interpreting [].
PR: 272729 Reviewed by: Mina Galić <freebsd@igalic.co> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41282
show more ...
|
#
b35ea9ba |
| 03-Jul-2023 |
Mohamed Akram <mohd.akram@outlook.com> |
man(1): use gzcat for .gz files
POSIX zcat appends the .Z suffix to file arguments causing the command to fail with .gz files.
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Reviewed by: ma
man(1): use gzcat for .gz files
POSIX zcat appends the .Z suffix to file arguments causing the command to fail with .gz files.
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Reviewed by: markj MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/789
show more ...
|
#
8edb6fb5 |
| 27-Jun-2023 |
Mohamed Akram <mohd.akram@outlook.com> |
man(1): Support custom sections
PR: 271830 Signed-off-by: Mohamed Akram <mohd.akram@outlook.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/764
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0 |
|
#
c8abb673 |
| 30-Jan-2023 |
Cameron Katri <me@cameronkatri.com> |
man(1): Support zstd compressed manpages using zstdcat
Reviewed by: emaste, markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D32296
|
#
433c5a8a |
| 27-Dec-2022 |
Wolfram Schneider <wosch@FreeBSD.org> |
do not expect mandoc(1) to terminate in finite time
PR: 266868
|
Revision tags: release/12.4.0, release/13.1.0 |
|
#
1594084f |
| 25-Jan-2022 |
Fernando Apesteguía <fernape@FreeBSD.org> |
man(1): Add full search (-K) flag
This flag allows a full text search on man pages. Although this is a last resort option, it can be useful to pin point a certain man page.
It can be used with -S t
man(1): Add full search (-K) flag
This flag allows a full text search on man pages. Although this is a last resort option, it can be useful to pin point a certain man page.
It can be used with -S to narrow the search.
Unlike the Linux version, the search takes place in the rendered text so it avoids false-positives when the text is found in comments in the source files.
It relies on `grep(1)` and `mandoc(1)` to do its job.
Add flag documentation and EXAMPLES to the manual page (bump .Dd).
Usage example:
man -w -K '\<arm\>' -S 1:8
Reviewed By: ceri, emaste, pauamma_gundo.com Approved by: manpages (bcr@), debdrup@ Differential Revision: https://reviews.freebsd.org/D30984
show more ...
|
Revision tags: release/12.3.0 |
|
#
f555b39e |
| 22-Sep-2021 |
Kyle Evans <kevans@FreeBSD.org> |
man: reset OPTIND before parsing args
From jilles: POSIX requires that a script set `OPTIND=1` before using different sets of parameters with `getopts`, or the results will be unspecified.
The spec
man: reset OPTIND before parsing args
From jilles: POSIX requires that a script set `OPTIND=1` before using different sets of parameters with `getopts`, or the results will be unspecified.
The specific problem observed here is that we would execute `man -f` or `man -k` without cleaning up state from man_parse_args()' `getopts` loop. FreeBSD's /bin/sh seems to reset OPTIND to 1 after we hit the second getopts loop, rendering the following shift harmless; other /bin/sh implementations will leave it at what we came into the loop at (e.g., bash as /bin/sh), shifting off any keywords that we had.
Input from: jilles Reviewed by: allanjude, bapt, imp Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D32063
show more ...
|
Revision tags: release/13.0.0 |
|
#
73577bf0 |
| 24-Oct-2020 |
Ryan Moeller <freqlabs@FreeBSD.org> |
flua: Add a libjail module
libjail is pretty small, so it makes for a good proof of concept demonstrating how a system library can be wrapped to create a loadable Lua module for flua.
* Introduce 3
flua: Add a libjail module
libjail is pretty small, so it makes for a good proof of concept demonstrating how a system library can be wrapped to create a loadable Lua module for flua.
* Introduce 3lua section for man pages * Add libjail module
Reviewed by: kevans, manpages Relnotes: yes Differential Revision: https://reviews.freebsd.org/D26080
show more ...
|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
c06e7b66 |
| 07-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340126 through r340212.
|