Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 2023 16:37:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275967] man(1) does not support some special characters in filenames
Message-ID:  <bug-275967-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275967

            Bug ID: 275967
           Summary: man(1) does not support some special characters in
                    filenames
           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

The shell script /usr/bin/man does not support some meta shell characters as
"(", "&", ")", ">", "<", "|"; ";"

E.g.

$ cp /usr/share/man/man1/cat.1.gz 'c;t.1.gz'
$ /usr/bin/man "./c;t.1.gz"
gzcat: can't stat: ./c: No such file or directory
eval: t.1.gz: not found
gzcat: can't stat: ./c: No such file or directory
eval: t.1.gz: not found

$ cp /usr/share/man/man1/cat.1.gz 'd(t.1.gz'
$ /usr/bin/man "./d(t.1.gz"
deval: 1: Syntax error: "(" unexpected

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275967-227>