question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Newlines are in DOS format

See original GitHub issue

Current 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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisyscommented, Dec 12, 2019

@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

0reactions
of-ravens-clawcommented, Dec 10, 2019

Yup, had to do this, else it would not work, thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found