1 回答
TA贡献1829条经验 获得超7个赞
您的代码没有任何问题,如果您尝试在终端中执行完全相同的命令,并查看退出状态,它将是64:
➜ ~ log help
usage:
log <command>
global options:
-?, --help
-q, --quiet
-v, --verbose
commands:
collect gather system logs into a log archive
config view/change logging system settings
erase delete system logging data
show view/search system logs
stream watch live system logs
stats show system logging statistics
further help:
log help <command>
log help predicates
➜ ~ echo $?
64
如果您想知道它为什么返回64,您可以询问sysexits它的含义:
➜ ~ man sysexits | grep -A 3 '64'
EX_USAGE (64) The command was used incorrectly, e.g., with the
wrong number of arguments, a bad flag, a bad syntax
in a parameter, or whatever.
- 1 回答
- 0 关注
- 133 浏览
添加回答
举报