首页 > 其他 > 详细

set: Illegal option -解决方案

时间:2021-05-17 00:03:06      阅读:139      评论:0      收藏:0      [点我收藏+]

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!