here-document gives 'unexpected end of file' error

后端 未结 7 2545
生来不讨喜
生来不讨喜 2020-11-22 04:42

I need my script to send an email from terminal. Based on what I\'ve seen here and many other places online, I formatted it like this:



        
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 05:42

    Along with the other answers mentioned by Barmar and Joni, I've noticed that I sometimes have to leave a blank line before and after my EOF when using <<-EOF.

提交回复
热议问题