From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <73afeaa26bd3f166bde71fb190f73ea3@plan9.bell-labs.com> From: Dennis Ritchie To: 9fans@cse.psu.edu Subject: Re: [9fans] sam command language MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Date: Thu, 9 Oct 2003 20:26:08 -0400 Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 6b124b62-eacc-11e9-9e20-41e7f4b1d025 > My first experience of Unix (circa 1976) was on an uppercase-only > terminal. The driver would display lowercase characters as > uppercase, and uppercase characters escaped with a backslash; >keyboard input was the inverse of this. So it was a common >mistake to type something like this in a C program > PRINTF("\HELLO, WORLD\N"): > which would result in "Hello, worldN" and no newline. > Exercise for the reader: how many backslashes are required > in the ed 's' command to correct the error? Years ago I ran into a situation with a script (probably involving all of the shell, ed, and troff) in which N=C2=BD \ were needed. N was too few, N+1 were too many. Dennis