shell函数中eof报错(warning: here-document at line 9 delimited by end-of-file (wanted `EOF'))

在shell编写函数时,函数中有eof和EOF,如果是在sublime编写按照格式tab缩进会有以下报错

解决办法:

取消函数中的tab缩进,在运行即可

原文地址:https://www.cnblogs.com/paul8339/p/8191915.html