有效地使用基于终端的文档(无网络浏览器)

Atc*_*old 4 shell scripting bash man

问题

我试图在没有 Internet 连接的情况下(即通过man页面)查找 shell 脚本信息。具体来说,我正在寻找如何传递和使用参数

man bash不包含我需要的所有内容(缺少shell 脚本)。

顺便说一下,在浏览 Internet 时,我发现我想阅读Bash 参考手册(是的,我已经在网上找到了我需要的所有内容)。

通过查看man页面的末尾可以获得相同的结果,您可以在其中找到以下部分:

SEE ALSO
       Bash Reference Manual, Brian Fox and Chet Ramey
       The Gnu Readline Library, Brian Fox and Chet Ramey
       The Gnu History Library, Brian Fox and Chet Ramey
       Portable Operating System Interface (POSIX) Part 2: Shell and Utilities, IEEE
       sh(1), ksh(1), csh(1)
       emacs(1), vi(1)
       readline(3)
Run Code Online (Sandbox Code Playgroud)

第一项,Bash Reference Manual实际上是我想阅读的内容。我如何浏览该链接?我在哪里可以找到其余的文档?

看起来人们必须始终依赖网络来检索有意义的信息。请教我man方法。一定有我遗漏的东西。

cas*_*cas 5

在 debian 系统上,Bash Reference Manual是在bash-doc包中。它可能类似地打包在其他发行版中。

The Gnu Readline LibraryThe Gnu History Library 手册中都readline-doc包。

您可以使用 阅读它们info,但 IMOinfo本身非常糟糕,几乎无法使用,而且用户界面糟糕透顶——这pinfo是一个更好的选择:apt-get install pinfo在基于 debian 的系统上。

例如pinfo bashpinfo history

info 导航以某种高深莫测的方式工作。

pinfo以类似于文本模式网络浏览器的方式导航信息文档lynx。除了其他好处外,前进和后退键实际上按预期工作。

pinfo项目页面,包括访问源代码,是在https://alioth.debian.org/projects/pinfo/

Portable Operating System Interface (POSIX) Part 2: Shell and Utilities是可从http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6880751&filter%3DAND%28p_Publication_Number%3A6880749%29(日期为 1993 年)获得的待售 .PDF 文档- 但您也可以找到2007 年规范的 PDF 草案位于http://www.open-std.org/jtc1/sc22/open/n4217.pdf和可能许多其他地方。更新的版本也可能可用,这些只是我在谷歌上找到的第一个版本。

  • +1 用于调用 `info` 是什么,并向我了解 `pinfo`。 (2认同)