지정된 폴더에 로컬로 개인 매뉴얼 페이지를 설치하는 스크립트를 만들려고 합니다.
맨패스 변경도 해봤는데 안되네요..
내 유일한 목표는 사용자가 다음을 사용할 수 있도록 하는 것입니다.
$ man mproject
동일한 디렉토리에 mproject.3 파일이 있으므로 맨패스에 "."(리터럴 경로 또는 절대 경로)를 추가해 보았습니다.
이것이 가능한가?
편집: OS는 다음과 같습니다
Linux **** 5.5.10-arch1-1 #1 SMP 선점 Wed Mar 18 08:40:35 2020 +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
디렉토리에 있는 동안
편집하다: 추적
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
가 있어야 하고 에 /your/local/man/man3/mproject.3
추가해야 하는 경우 ./your/local/man
MANPATH
매뉴얼 페이지를 포함하는 섹션에 하위 디렉토리가 있으면 충분합니다. 귀하의 경우에는 man3
.
mproject
파트 3에서는 이것이 라이브러리 호출임을 암시합니다 . (바라보다 man man
.)