shell脚本对编码和行尾是否敏感?
run-nw
#!/bin/bashcd "src"npm install cd .../tools/nwjs-sdk-v0.17.3-osx-x64/nwjs.app/Contents/MacOS/nwjs "src" &
$ sh ./run-nw: command not found : No such file or directory : command not found : No such file or directory Usage: npm <command>where <command> is one of: (snip commands list)(snip npm help)npm@3.10.3 /usr/local/lib/node_modules/npm : command not found : No such file or directory : command not found
\r\n
\n
\r
dirname
cd
install
npm
npm install
~/.gitconfig
autocrlf=true
\r\n
.
海绵宝宝撒