Small introspective program

Scott Henry scotth at corp.sgi.com
Tue Mar 12 22:54:43 AEST 1991


andy> The smaller the better! In many interpreted BASIC's of years ago you
andy> could do:

andy> 	1 LIST

andy> Which when RUN would produce:

andy> 	1 LIST

andy> (Using a single digit line number to make it as small as possible).

And in any sh|csh|tcsh on unix, this one is about as short as you can get:

        cat $0

--
 Scott Henry <scotth at sgi.com> / Traveller on Dragon Wings
 Information Services,       / Help! My disclaimer is missing!
 Silicon Graphics, Inc      / Politicians no baka!



More information about the Comp.lang.c mailing list