summaryrefslogtreecommitdiffstats
path: root/regress/man
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-02-24 21:16:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-02-24 21:16:31 +0000
commitbe9bc5f32ffd94d94c5016589b6f29f421469ba4 (patch)
tree139a2a00d2063db94d037c731bce46dffd80e536 /regress/man
parent756799ac8d72aa1ef4345816847ee80e91d61405 (diff)
downloadmandoc-be9bc5f32ffd94d94c5016589b6f29f421469ba4.tar.gz
Marc Espie reported that "man p*ipc" displayed the perlipc(1) manual.
The reason was that as a last resort when failing to find a page name in mandoc.db(5) or at a few well well-defined fully qualified file names, man(1) uses glob(3) to look for candidate files in relevant directories, because some operating systems have weird file name extensions, for example pcap.3pcap and BF_set_key.3ssl on Linux. But during that globbing, the metacharacters "*?[" need to be escaped in the name, section, and path supplied by the user, or you would get weird false positives and misleading warning messages and would be unable to use the fallback for path or file names that actually contain an opening bracket. Feedback and OK espie@.
Diffstat (limited to 'regress/man')
0 files changed, 0 insertions, 0 deletions