Page MenuHomeFreeBSD

man(1) does not support spaces in filenames
ClosedPublic

Authored by wosch on Dec 28 2023, 3:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 20, 6:43 PM
Unknown Object (File)
Sep 29 2024, 9:26 AM
Unknown Object (File)
Sep 21 2024, 4:05 AM
Unknown Object (File)
Sep 18 2024, 4:08 AM
Unknown Object (File)
Sep 17 2024, 2:10 PM
Unknown Object (File)
Sep 17 2024, 4:21 AM
Unknown Object (File)
Sep 16 2024, 6:16 PM
Unknown Object (File)
Sep 15 2024, 1:47 PM
Subscribers

Details

Summary

There is another problem with white spaces. The globbing function in exists() cannot handle white spaces. This is not trivial to fix, we have to rewrite the function.

mkdir -p man/man1
cp /usr/share/man/man1/cat.1.gz "man/man1/ZZZ cat.1.gz"
/usr/bin/man -M man "ZZZ cat"
No manual entry for ZZZ
No manual entry for cat

see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275978

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wosch requested review of this revision.Dec 28 2023, 3:07 PM
This revision is now accepted and ready to land.Jan 4 2024, 4:23 AM
emaste added inline comments.
usr.bin/man/man.sh
194

should this comment be "at least one real file"?

204

style in the rest of the file seems to want
for file in ...; do
but but fine either way

This revision was automatically updated to reflect the committed changes.