我正在尝试制作一个脚本来在指定文件夹中本地安装个人手册页。
我尝试过更改 manpath,但这不起作用..
我唯一的目标是让用户使用:
$ man mproject
我在同一目录中有一个 mproject.3 文件,所以我尝试附加“.” (无论是字面路径还是绝对路径)到 manpath..
这是可能吗 ?
编辑:操作系统是:
Linux **** 5.5.10-arch1-1 #1 SMP 抢占 2020 年 3 月 18 日星期三 08:40:35 +0000 x86_64 GNU/Linux
编辑:层次结构
| base_folder
|--- man
| |--- man3
| |--- mproject.3
|--- files
|...
$MANPATH=<path-to-base_folder/man>:
$MANPATH
使用命令设置
MANPATH=$(pwd):$MANPATH
base-folder/man
在目录内时
编辑:strace
execve("/usr/bin/man", ["man", "mproject"], 0x7ffc177c7998 /* 46 vars */) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/tls/haswell/x86_64/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/tls/haswell/x86_64", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/tls/haswell/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/tls/haswell", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/tls/x86_64/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/tls/x86_64", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/tls/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/tls", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/haswell/x86_64/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/haswell/x86_64", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/haswell/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/haswell", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/x86_64/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/man-db/x86_64", 0x7ffc16c420c0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/libmandb-2.9.1.so", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libman-2.9.1.so", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libz.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libpipeline.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/libpipeline.so.1", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libgdbm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/man-db/libgdbm.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/libgdbm.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/man-db/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/libseccomp.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/home/oliver/.manpath", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/etc/man_db.conf", O_RDONLY) = 3
stat("/home/oliver/.cabal/bin/less", 0x7ffc16c42af0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/bin/less", 0x7ffc16c42af0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/env/less", 0x7ffc16c42af0) = -1 ENOTDIR (N'est pas un dossier)
stat("/usr/local/bin/less", 0x7ffc16c42af0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/local/sbin/less", 0x7ffc16c42af0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/less", {st_mode=S_IFREG|0755, st_size=179664, ...}) = 0
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/share/locale/fr_FR.UTF-8/LC_MESSAGES/man-db.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr_FR.utf8/LC_MESSAGES/man-db.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr_FR/LC_MESSAGES/man-db.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr.UTF-8/LC_MESSAGES/man-db.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr.utf8/LC_MESSAGES/man-db.mo", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/locale/fr/LC_MESSAGES/man-db.mo", O_RDONLY) = 3
stat("/home/oliver/.cabal/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.cabal/bin/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.cabal/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.cabal/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/bin/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/env/man", 0x7ffc16c42a30) = -1 ENOTDIR (N'est pas un dossier)
stat("/home/oliver/.ghcup/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/home/oliver/.ghcup/env/share/man", 0x7ffc16c42a30) = -1 ENOTDIR (N'est pas un dossier)
stat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/lib/jvm/default/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/jvm/default/bin/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/jvm/default/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/lib/jvm/default/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/man", {st_mode=S_IFREG|0755, st_size=115296, ...}) = 0
stat("/usr/bin/site_perl/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/site_perl/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/man", {st_mode=S_IFREG|0755, st_size=115296, ...}) = 0
stat("/usr/bin/vendor_perl/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/vendor_perl/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/man", {st_mode=S_IFREG|0755, st_size=115296, ...}) = 0
stat("/usr/bin/core_perl/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/bin/core_perl/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/Fac/L3 Info 2019-2020/Preparation/S5/ARO/AMPL/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/Fac/L3 Info 2019-2020/Preparation/S5/ARO/AMPL/ampl/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/Fac/L3 Info 2019-2020/Preparation/S5/ARO/AMPL/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/Fac/L3 Info 2019-2020/Preparation/S5/ARO/AMPL/ampl/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/BAL/2019/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/BAL/2019/CSV/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/BAL/2019/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("~/Documents/BAL/2019/CSV/share/man", 0x7ffc16c42a30) = -1 ENOENT (Aucun fichier ou dossier de ce type)
stat("/usr/man", 0x7ffc16c429a0) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/share/man", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
stat("/usr/share/man/zh_TW", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/ja", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/id", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/pl.ISO8859-2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/pt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/da.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/da", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/sv", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/de.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/hu", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/it", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/sl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/ru", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/de.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/pl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/de", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/it.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/es", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/pt_BR", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/ru.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/ko", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/zh_CN", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/zh_Hant", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/jp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/ru.KOI8-R", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/nb_NO", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/pl.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/tr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/it.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/uk", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/sr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/nl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/da.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/cs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/man/fr.ISO8859-1", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/man/fr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man/fr.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/man/fr.UTF-8", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/local/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/local/share/man", {st_mode=S_IFLNK|0777, st_size=6, ...}) = 0
readlink("/usr/local/share/man", "../man", 4095) = 6
lstat("/usr/local/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/share/man", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1/man1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/var/cache/man/fr.ISO8859-1/index.db", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr/man1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/var/cache/man/fr/index.db", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8/man1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/var/cache/man/fr.UTF-8/index.db", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/var/cache/man/oldlocal/index.db", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/var/cache/man/index.db", O_RDONLY) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/mann", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr/man8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr/man3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr/man5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.ISO8859-1", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/fr.UTF-8", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/local/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man/man7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
openat(AT_FDCWD, "/usr/share/man", O_RDONLY|O_PATH|O_DIRECTORY) = 3
Aucune entrée de manuel pour mproject
答案1
您应该使用基本目录的绝对路径,而不是添加.
(当前目录),该目录必须包含手册页层次结构,包括等部分。如果您使用,该命令将在您运行时在当前目录中搜索,不管那是什么。MANPATH
man1
.
man
man
如果你的手册页mproject.3
应该在eg中/your/local/man/man3/mproject.3
,并且你必须添加/your/local/man
到MANPATH
.
包含手册页的部分有子目录就足够了。在你的情况下你只需要man3
.
请注意,第 3 部分暗示这mproject
是一个库调用。 (看man man
。)