RubyYoung

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

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   RubyYoung  阅读(1997)  评论(0编辑  收藏  举报

点击右上角即可分享
微信分享提示