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

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

解决办法:

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

 

posted @ 2018-01-04 10:59  paul_hch  阅读(7610)  评论(0编辑  收藏  举报