Rails 本地正常在服务器上老出这东西,搜索了一通也没找到,有办法定位吗

wupei1024 · July 31, 2018 · Last by wupei1024 replied at July 31, 2018 · 2101 hits

首先 Google 一下 Shebang
https://en.wikipedia.org/wiki/Shebang_(Unix)

然后再看看能不能理解这句话的意思:
warning: shebang line ends with \r may cause a problem

如果还不理解,就 Google 一下上面那句话。

用的编辑器配置的问题,导致了换行符的错误。

Linux 下换行符是 \n

window 下是 \r\n 都可以正确识别

感谢二位,原理是知道的,想 知道有什么好办法能定位这个\r在哪个文件中。是我没说清楚。

You need to Sign in before reply, if you don't have an account, please Sign up first.