RubyYoung

导航

set: Illegal option -解决方案

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

posted on 2021-05-16 19:58  RubyYoung  阅读(2238)  评论(0)    收藏  举报