From mboxrd@z Thu Jan 1 00:00:00 1970 From: imp@bsdimp.com (M. Warner Losh) Date: Sat, 08 Mar 2003 23:19:22 -0700 (MST) Subject: [TUHS] Why is \n 012? In-Reply-To: <040b01c2e5f0$03000580$6401a8c0@gregnewport> References: <20030309032000.GD34634@wantadilla.lemis.com> <040b01c2e5f0$03000580$6401a8c0@gregnewport> Message-ID: <20030308.231922.68546726.imp@bsdimp.com> In message: <040b01c2e5f0$03000580$6401a8c0 at gregnewport> "Greg Haerr" writes: : > A thing that has puzzled me almost for ever is why the newline : > character in C is 012 and not 015. Does anybody have any insight? : : Well, my take on this is that C was developed with UNIX, : of course, and UNIX early on decided to use a single : character rather than a two-char (CRLF) sequence for : end-of-lines. So, since the CR was already in use for : the leading char in the two-char sequence, it made it a lot : easier to use the LF character for the single newline, so : programs wouldn't always have to be checking a second : character... Also, it is not possible to do overstriking w/o if you can't use for the task. Warner