Faced the issue of
/bin/bash^M: bad interpreter: No such file or directory
on Linux Mint, for a copy-pasted file from Windows. I knew that this was most probably due to a CR-Linefeed issue. The default text editor, xed, did not seem to fix it. Finally, as this page suggested, used/bin/bash^M: bad interpreter: No such file or directory
:set ff=unix
Edited: 1st April 2017 - :set ff=dos is for Windows style CR/LF ....
No comments:
Post a Comment