Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 Redhat 5.11 机器上运行的脚本,它的类型为 SHELL pdksh。
但是,当我使用 KSH93 shell 在 Redhat 7.1 上运行相同的脚本时,它给了我以下错误:
./script.ksh[212]: set: posix: bad option(s) Usage: set [-sabefhkmnprtuvxBCGH] [-A name] [-o[option]] [arg ...]
这是产生错误的行:
set -o posix