Linux错误:warning: here-document at line 5 delimited by end-of-file (wanted `EOF`

 shell 脚本执行‘warning’:

执行此test.shell报如下错:

warning: here-document at line 17 delimited by end-of-file (wanted `EOF')

原因是末尾的EOF后面带有空格,EOF前后都不应有空格或其他符号。

去掉EOF两边的空格和符号后,执行通过。

猜你喜欢

转载自blog.csdn.net/weixin_42575593/article/details/83686244