5 ms·
Unix = LF Mac = CR DOS = CRLF The DOS line endings are inherited from previous systems, and while they precisely convey carriage and paper movement of a printe
by chinpokomon 13y ago
Unix = LF
Mac = CR
DOS = CRLF
The DOS line endings are inherited from previous systems, and while they precisely convey carriage and paper movement of a printer it can be a pain to deal with today.
- ygra 13y agoSomewhat ironic that this detail of how teletypewriters work was not carried over into Unix whereas every intricacy of how video terminals worked still is with us today.
- gioele 13y agoUnix = LF Mac = CR DOS = CRLF Please add to that list also HTTP = CRLF http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html However, I still have to see I single webserver that does not accept LF alone instead of CRLF.
- eli 13y agoOnly old Macs. They switched to POSIX-style LF with OS X.
- chinpokomon 13y agoTrue, but since Mac OSX is already known by most people to be *nix based, at least this audience, I felt like that might just add to confusion. There are certainly other OSs like BeOS that I didn't mention, in part because I didn't think they added to the discussion, and also while having fond memories of BeOS, I honestly don't remember what it used. I want to say it was LF, but I no longer remember.