Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notes version 1.1.10 usg 11/8/83; site ihlpf.UUCP Path: utzoo!linus!security!genrad!decvax!harpo!eagle!mhuxl!houxm!ihnp4!ihlpf!ignatz From: ignatz@ihlpf.UUCP Newsgroups: net.general Subject: "Re: Merry Christmas in Bourne Shell - (nf)" Message-ID: <221@ihlpf.UUCP> Date: Fri, 18-Nov-83 03:00:33 EST Article-I.D.: ihlpf.221 Posted: Fri Nov 18 03:00:33 1983 Date-Received: Sat, 19-Nov-83 03:33:50 EST Organization: AT&T Bell Labs, Naperville, IL Lines: 28 #R:ihuxx:-59200:ihlpf:5500007:000:734 ihlpf!ejn Nov 17 18:15:00 1983 Here's a 'program' in TECO (DEC's editor) to print "Merry Christmas" fifteen times: 15<^AMerry Christmas ^A>$$ [I think that's the right syntax; it's been several years since I've used it.] For those who would argue that an editor's command set does not form a programming language, consider this: I once saw an entire BASIC interpreter written in TECO. It was a primitive BASIC and execution was incredibly slow, but it worked. Eric Northrop AT&T Bell Laboratories Naperville, IL ihlpf!ejn P. S. Here's another contest in a similar vein: Pick a machine. Think of all the ways to zero a register in a single instruction and without using any other memory locations. On a DECsystem-10, there are over 50!