如何解決執行 bash script 時遇到 " '\r': command not found" 的問題

Posted on Wed 24 April 2019 in Tips • Tagged with Bash, Shell scripts, Linux, Windows Subsystem for Linux

前言

在使用WSL執行 bash script 有時會遇到像這樣的錯誤:

-bash: '\r': command not found

經過搜尋之後在stackoverflow找到解答,該錯誤訊息是因為 Windows 的 newline 符 …


繼續閱讀