127 从 $ 返回代码? [英] 127 Return code from $?
本文介绍了127 从 $ 返回代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ 返回值 127 是什么意思?在 UNIX 中.
What is the meaning of return value 127 from $? in UNIX.
推荐答案
当在您的 PATH
中找不到给定的命令时,/bin/sh
会返回值 127系统变量,它不是内置的 shell 命令.换句话说,系统不理解您的命令,因为它不知道在哪里可以找到您尝试调用的二进制文件.
Value 127 is returned by /bin/sh
when the given command is not found within your PATH
system variable and it is not a built-in shell command. In other words, the system doesn't understand your command, because it doesn't know where to find the binary you're trying to call.
这篇关于127 从 $ 返回代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文