1.
运行脚本时出现了这样一个错误,打开之后并没有找到所谓的^M,查了之后才知道原来是文件格式的问题,也就是linux和windows之间的不完全兼容。。。
具体细节不管,如果验证: 网址:yii666.com
vim test.sh
:set ff?
如果出现fileforma=dos那么就基本可以确定是这个问题了。
:set fileformat=unix
:wq
OK了。。。。。。。文章地址https://www.yii666.com/article/758202.html
http://blog.csdn.net/yongan1006/article/details/8142527文章来源地址:https://www.yii666.com/article/758202.html