[Bug 261357] man(1) cannot handle manual pages with spaces in file name

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 20 Jan 2022 15:48:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261357

            Bug ID: 261357
           Summary: man(1) cannot handle manual pages with spaces in file
                    name
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org

/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

-- 
You are receiving this mail because:
You are the assignee for the bug.