shell脚本报错:-bash: xxx: /bin/bash^M: bad interpreter: No such file or directory
今天写了一个shell脚本,然后在执行的时候报错,脚本内容很简单,仅供测试:
#!/bin/sh
echo "test shell "
具体报错信息如下:
[root@localhost test]# ./test.sh
-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directo...
原创
2018-11-09 15:41:41 ·
264 阅读 ·
0 评论