1. 程式人生 > >linux 下出現 SHELL syntax error:unexpected end of file 提示錯誤

linux 下出現 SHELL syntax error:unexpected end of file 提示錯誤

shell syntax error

  1. 基本上可以判斷是字符異常錯誤

  2. 首先註釋掉盡快會出錯的代碼,然後進行判斷

  3. 如果代碼沒有問題,可以修改字符格式

  4. vim文本下,esc推出編輯模式 :set fileformat unix ,最後:wq 保存 ,錯誤消失。




參考http://blog.csdn.net/david_xtd/article/details/7577265

linux 下出現 SHELL syntax error:unexpected end of file 提示錯誤