Q: 终端运行.sh报错:***.sh: 2: set: Illegal option - A: solution:Remove trailing \r character that causes this error!
命令:
sed -i ‘s/\r$//‘ filename
参考: https://stackoverflow.com/questions/11616835/r-command-not-found-bashrc-bash-profile/11617204#11617204
set: Illegal option -解决方案
原文:https://www.cnblogs.com/RubyYoung/p/14774680.html