Linux | shell中的wanted 'EOF'错误解决
在Linux中编写shell后,执行报错如下: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两边的空格和符号后,执行通过。
您阅读这篇文章共花了: