Q:
终端运行.sh报错:***.sh: 2: set: Illegal option -
A:
solution:Remove trailing \r character that causes this error!
命令:
sed -i 's/\r$//' filename
参考:
https://*.com/questions/11616835/r-command-not-found-bashrc-bash-profile/11617204#11617204
2024-02-28 09:20:16
Q:
终端运行.sh报错:***.sh: 2: set: Illegal option -
A:
solution:Remove trailing \r character that causes this error!
命令:
sed -i 's/\r$//' filename
参考:
https://*.com/questions/11616835/r-command-not-found-bashrc-bash-profile/11617204#11617204