Bug 261357 - man(1) cannot handle manual pages with spaces in file name
Summary: man(1) cannot handle manual pages with spaces in file name
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-20 15:48 UTC by Wolfram Schneider
Modified: 2022-01-21 00:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer freebsd_triage 2022-01-20 15:48:45 UTC
/usr/bin/man has problems with manual pages which contain spaces in file name. In the past some of our ports manual pages contained spaces (it may happens again).

How to repeat:

cp /usr/share/man/man1/cat.1.gz "c a t . 1 . gz"
/usr/bin/man $(pwd)/"c a t . 1 . gz"
No manual entry for /tmp/c
No manual entry for a
No manual entry for t
No manual entry for .
No manual entry for 1
No manual entry for .
No manual entry for gz