当前位置: 技术问答>linux和unix
关于man page的分类问题
来源: 互联网 发布时间:2016-07-13
本文导语: /usr/share/man/目录下,有的目录名是man[1-9,n,o,l][px]。[1-9,n,o,l]代表章节号,p和x又代表什么呢? | 以前没注意这个问题。刚才试了一下, $ man 1p diff DIFF(1P) POSIX Progra...
/usr/share/man/目录下,有的目录名是man[1-9,n,o,l][px]。[1-9,n,o,l]代表章节号,p和x又代表什么呢?
|
以前没注意这个问题。刚才试了一下,
$ man 1p diff
DIFF(1P) POSIX Programmerâ's Manual DIFF(1P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux
implementation of this interface may differ (consult the corresponding
Linux manual page for details of Linux behavior), or the interface may
not be implemented on Linux.
所以我猜这个p可能是代表posix
$ man 1p diff
DIFF(1P) POSIX Programmerâ's Manual DIFF(1P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux
implementation of this interface may differ (consult the corresponding
Linux manual page for details of Linux behavior), or the interface may
not be implemented on Linux.
所以我猜这个p可能是代表posix
|
我的man?x目录全都是空的,试了几个带x的man命令也都不灵,所以没法象p那样猜了。
我搜到这么一段,可能是和X Window有关
revno: 1236
committer: Ville Skyttä
branch nick: current
timestamp: Mon 2009-01-12 00:10:22 +0200
message:
Added support for p (POSIX) and x (x.org) man sections.
modified:
bash_completion
debian/changelog
=== modified file 'bash_completion'
--- a/bash_completion 2009-01-11 21:41:45 +0000
+++ b/bash_completion 2009-01-11 22:10:22 +0000
@@ -884,7 +884,7 @@
fi
# determine manual section to search
- [[ "$prev" == [0-9ln] ]] && sect=$prev || sect='*'
+ [[ "$prev" == @([0-9lnp]|[0-9][px]) ]] && sect=$prev || sect='*'
manpath=$manpath:
if [ -n "$cur" ]; then
=== modified file 'debian/changelog'
--- a/debian/changelog 2009-01-11 21:41:45 +0000
+++ b/debian/changelog 2009-01-11 22:10:22 +0000
@@ -60,6 +60,7 @@
* Improved performance of rpm -qa based rpm installed package completion
(Ville Skyttä).
* Improved features and performance of yum completion (Ville Skyttä).
+ * Added support for p (POSIX) and x (x.org) man sections (Ville Skyttä).
* Merge from Gentoo:
- fix 'find' completion so that it properly completes on -?(i)whilename.
Patch by Ciaran McCreesh.
我搜到这么一段,可能是和X Window有关
revno: 1236
committer: Ville Skyttä
branch nick: current
timestamp: Mon 2009-01-12 00:10:22 +0200
message:
Added support for p (POSIX) and x (x.org) man sections.
modified:
bash_completion
debian/changelog
=== modified file 'bash_completion'
--- a/bash_completion 2009-01-11 21:41:45 +0000
+++ b/bash_completion 2009-01-11 22:10:22 +0000
@@ -884,7 +884,7 @@
fi
# determine manual section to search
- [[ "$prev" == [0-9ln] ]] && sect=$prev || sect='*'
+ [[ "$prev" == @([0-9lnp]|[0-9][px]) ]] && sect=$prev || sect='*'
manpath=$manpath:
if [ -n "$cur" ]; then
=== modified file 'debian/changelog'
--- a/debian/changelog 2009-01-11 21:41:45 +0000
+++ b/debian/changelog 2009-01-11 22:10:22 +0000
@@ -60,6 +60,7 @@
* Improved performance of rpm -qa based rpm installed package completion
(Ville Skyttä).
* Improved features and performance of yum completion (Ville Skyttä).
+ * Added support for p (POSIX) and x (x.org) man sections (Ville Skyttä).
* Merge from Gentoo:
- fix 'find' completion so that it properly completes on -?(i)whilename.
Patch by Ciaran McCreesh.