相关疑难解决方法(0)

Shell脚本:找不到新行命令

我试图从命令行运行我的shell脚本让我们说;

我的脚本看起来像这样:

#!bin/bash

echo hello
Run Code Online (Sandbox Code Playgroud)

当尝试运行此源./abcd.sh时出现此错误.

"' is not a typo you can run the following command to lookup the package that contains the binary:
    command-not-found 
: command not found
hello
"
Run Code Online (Sandbox Code Playgroud)

在"echo hello"之前有空行之前从未见过这个问题吗?我想知道是否有其他人遇到过这样的事情.

shell

1
推荐指数
1
解决办法
8434
查看次数

标签 统计

shell ×1