Newlines are in DOS format
See original GitHub issueCurrent version errors out with
$'\r': command not found
as DOS newlines are \r\n instead of a Unix \n. Easily fixed with find/replace.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
HowTo: UNIX / Linux Convert DOS Newlines CR-LF ... - nixCraft
To converts text files between DOS and Unix formats you need to use special utility called dos2unix. DOS text files traditionally have carriage ......
Read more >How to convert DOS/Windows newline (CRLF) to Unix ...
In a Unix environment: convert DOS newlines (CR/LF) to Unix format. sed 's/.$//' # Assumes that all lines end with CR/LF sed 's/^M$//'...
Read more >Grep can't find end of line in DOS format text file?
Vim shows the file format is "dos", which I gather just means it has CR/LF line endings. I wanted to get a list...
Read more >DOS vs. Unix Line Endings
Text files created on DOS/Windows machines have different line endings than files created on Unix/Linux. DOS uses carriage return and line feed ("\r\n")...
Read more >File Format
The primary difference between an MS DOS format file and a Unix format file, is how the lines are terminated. Unix uses a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Crinfarr when you clone a repo with git, it will change the line endings to those used by your system and then switch back when you commit. See here for info: https://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings
Yup, had to do this, else it would not work, thanks