Unix uses different line feeds and carriage returns so can't read the file you created on Windows. Hence it is seeing ^M as an illegal character.
In windows, using Notepad+ change to UNIX format.
参考资料: -bash: ./my_script: /bin/bash^M: bad interpreter: No such file or directory [duplicate]
没有评论:
发表评论
谢谢您的留言^_^