Shell常見錯誤:syntax error: unexpected end of file

記錄一個錯誤: 用nodepad++寫一個簡單的shell腳本,在編譯服務器上運行始終報錯: syntax error: unexpected end of file sh 並沒有13行。 解決方式: 將文檔轉換成Unix格式,或者直接用vim編輯器編寫。
相關文章
相關標籤/搜索