【问题标题】:How can I find out which shell commands are available in a POSIX compliant Linux system and which ones are not?如何找出在符合 POSIX 的 Linux 系统中哪些 shell 命令可用,哪些不可用?
【发布时间】:2014-09-20 07:44:14
【问题描述】:

在编写 shell 脚本时,我想尽量让我的脚本与 POSIX 兼容,即任何 POSIX shell 都应该能够成功运行它。

在编写脚本时,有时我必须决定是否应该使用printfgetopt 等命令。我不知道如何做出这样的决定。

有没有办法查明某个命令是否被 POSIX 标准保证可用?

【问题讨论】:

    标签: shell posix


    【解决方案1】:

    文档

    > POSIX 标准主页 (link)

    >> Shell & Utilities,在左上角角(link

    >>> 实用程序(link

    以编程方式

    检查这个答案:(link

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-03
      • 2012-03-23
      • 1970-01-01
      • 2013-06-26
      • 2016-04-11
      • 1970-01-01
      • 1970-01-01
      • 2011-02-09
      相关资源
      最近更新 更多