4 ms·
In Unix it’s the job of the teletypewriter driver to translate LF into CRLF. I don’t know why things were this way. Maybe to make it easier to write Unix utilit
by dan-robertson 7y ago
In Unix it’s the job of the teletypewriter driver to translate LF into CRLF. I don’t know why things were this way. Maybe to make it easier to write Unix utilities in assembler. Maybe because it doesn’t make much sense for a program like cut to see a lone CR or LF if it wants CRLF to separate lines, so the problem is avoided by not tearing CR in any special way.
I have no idea if overtyping (ie a CR without a LF) was ever used but surely the terminal line replacement use of CR didn’t exist when Unix was created