Wrong line endings are often annoying. For example, this is what Windows Notepad shows when writing a file with \n instead of \r\n (Windows' line.separator):

These little boxes were supposed to be line breaks.
Another way, when \r\n used instead of \n (Unix 'line.separator), is much worse and breaks shell scripts and configuration files in strange and wonderful ways.
For example, this is what sh outputs to Debian and its derivative distributions when trying to run a shell script that contains only ls but with line separators \r\n (it looks broken because the carriage return causes the terminal to overwrite parts of the line):
: not foundsh: ls
There are several questions from StackOverflow from people bitten by this, for example here , here and here .
that other guy
source share