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

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

解决办法:

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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-07-15
  • 2021-08-21
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
相关资源
相似解决方案