更新时间:2023-02-03 20:53:12
您不小心运行了名为 test
的系统命令,该命令不产生任何输出.您需要使用 ./test
代替在当前目录中查找脚本,而 test
将使用内置的shell命令(即使没有,它会找到/usr/bin/test
来代替).
You're accidentally running the system command called test
, which produces no output. You need to use ./test
instead to find the script in the current directory, whereas test
will use the built-in shell command (and even if it didn't, it would find /usr/bin/test
instead).
这就是为什么您应该避免调用测试程序 test
的原因.试试 try
.
This is why you should avoid calling your test programs test
. Try try
instead.