为什么“将 Wireshark 添加到系统路径”无法让 man 工作?

为什么“将 Wireshark 添加到系统路径”无法让 man 工作?

我曾经Wireshark 3.2.2 Intel 64在 macOS 10.15.3 上安装过 Wireshark。并且我安装了ChmodBPFAdd Wireshark to the system path

tsharkOh My Zsh与以下机构合作iTerm2

 $ tshark -h
TShark (Wireshark) 3.2.2 (v3.2.2-0-ga3efece3d640)
Dump and analyze network traffic.
See https://www.wireshark.org for more information.

man tshark不起作用:

$ man tshark
No manual entry for tshak

Wireshark已被投入/etc/manpaths.d

$ cat /etc/manpaths.d/Wireshark
/Applications/Wireshark.app/Contents/Resources/share/man

但如果我添加/Applications/Wireshark.app/Contents/Resources/share/manMANPATHman tshark则有效:

$ echo $MANPATH
/usr/local/opt/gnu-sed/libexec/man:/usr/local/opt/coreutils/libexec/gnuman:
$ export MANPATH="$MANPATH:/Applications/Wireshark.app/Contents/Resources/share/man"
$ echo $MANPATH
/usr/local/opt/gnu-sed/libexec/man:/usr/local/opt/coreutils/libexec/gnuman::/Applications/Wireshark.app/Contents/Resources/share/man
$ man tshark
SHARK(1)                             The Wireshark Network Analyzer                             TSHARK(1)



NAME
       tshark - Dump and analyze network traffic

我还补充/Library/TeX/Distributions/.DefaultTeX/Contents/Man/etc/manpaths.d/TeX

$ cat /etc/manpaths.d/TeX
/Library/TeX/Distributions/.DefaultTeX/Contents/Man

man pdflatex作品:

$ which pdflatex
/Library/TeX/texbin/pdflatex
$ man pdflatex
PDFTEX(1)                                                      PDFTEX(1)



NAME
       pdftex - PDF output from TeX

SYNOPSIS
       pdftex [options] [&format] [file|\commands]

DESCRIPTION

相关内容