Page MenuHomeFreeBSD

man: Add -l option
ClosedPublic

Authored by des on Sep 4 2025, 5:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 3:20 AM
Unknown Object (File)
Sat, Oct 11, 3:20 AM
Unknown Object (File)
Sat, Oct 11, 3:20 AM
Unknown Object (File)
Sat, Oct 11, 3:20 AM
Unknown Object (File)
Fri, Oct 10, 8:27 PM
Unknown Object (File)
Sun, Oct 5, 5:21 AM
Unknown Object (File)
Fri, Oct 3, 9:55 PM
Unknown Object (File)
Mon, Sep 29, 11:30 PM
Subscribers

Details

Summary

Add a -l option which causes man to interpret all arguments as paths to
open directly rather than man pages to search for in MANPATH. See the
PR for a detailed rationale.

PR: 289245
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Sep 4 2025, 5:48 PM
emaste added inline comments.
usr.bin/man/man.sh
526–527

IMO exceeding 80 cols is slightly preferable to wrapping the error message

640

Would be nice for someone to redo this block

This revision is now accepted and ready to land.Sep 4 2025, 5:59 PM
ziaee added inline comments.
usr.bin/man/man.1
413

Should we fix this one since we're planning to deprecate this syntax?

usr.bin/man/man.1
413

Oh yes, if we're emitting a warning for this now it shouldn't be the example in the man page. Good catch.

This revision now requires review to proceed.Sep 4 2025, 10:47 PM
des marked 2 inline comments as done.Sep 4 2025, 10:47 PM

Don't forget guanxi co-authored-by

This revision is now accepted and ready to land.Sep 4 2025, 11:03 PM
This revision was automatically updated to reflect the committed changes.