cygwin 配置时.运行cygwin.bat就有错.
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: $'\r': command not found
bash: /home/s/.bash_profile: line 48: syntax error: unexpected end of file
其实是不能用win的纪事本打开编辑bash_profile. 要用editplus或ultraedit. 我用UE.编辑然后选择DOS转UNIX 保存. 再运行bat. 无错了..
遇到Cygwin配置时,使用记事本打开编辑bash_profile导致错误的情况,建议使用EditPlus或UltraEdit等编辑器,并进行DOS转UNIX格式保存。实践证明,此方法能有效解决bash_profile中出现的语法错误。
7034

被折叠的 条评论
为什么被折叠?



