[net.general] "Re: Merry Christmas in Bourne Shell

ignatz@ihlpf.UUCP (11/18/83)

#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!