***.sh: 2: set: Illegal option –
终端运行.sh报错:***.sh: 2: set: Illegal option –
solution:Remove trailing \r character that causes this error:
command
终端运行.sh报错:***.sh: 2: set: Illegal option –
solution:Remove trailing \r character that causes this error:
command
sed -i ‘s/\r$//’ filename
1
参考:
https://stackoverflow.com/questions/11616835/r-command-not-found-bashrc-bash-profile/11617204#11617204

–竹儿

————————————————
版权声明:本文为CSDN博主「心应死」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_43075039/article/details/98475964