From: utzoo!decvax!cca!FC01@Usc-Ecl@sri-unix
Newsgroups: net.unix-wizards
Title: Re: CR & LF
Article-I.D.: sri-unix.3135
Posted: Mon Sep  6 16:34:20 1982
Received: Thu Sep  9 06:07:10 1982

From: FC01 
Date:  3 Sep 1982 0739-PDT
Jay,
	Every system I have ever seen (except for DG) requires a  as end of
line on input, not  and not . Evey system I've seen uses  as
end of line output (although  is certainly useful for special format output)
and  is rarely used for formatting. On the other hand, the reason for using
 is to delimit lines, not to indicate output format - you may notice that
programs that handle output have to use  as a replacement for  each
time they do output and have to convert  to  on input to use  as
the end of line character. It just seems to me you nearly always save one
conversion, and often save two conversins by using  as EOL instead of .
On input you always save  to  (although you still have to echo .
On output you rarely lose by converting  to  rather than converting
 to  (in fact the code for the former can be done more quickly since
you always do the first output and simply skip the  if the char was not a
). On file transfer you can use  rather than  (I've never seen
an input routine that expects , they all take  as far as I know),
and thus save the conversion from  to whatever and from whatever to 
by simply using  everywhere. Seeks work the same whether you use  or
 as the magic eol character.
			Fred
-------