home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3097
< prev
next >
Wrap
Text File
|
1991-03-20
|
892b
|
29 lines
Newsgroups: alt.sources
From: mayer@sono.uucp (Ronald &)
Subject: Re: Small introspective program [The winner?]
Message-ID: <MAYER.91Mar19131259@porky.sono.uucp>
Date: 19 Mar 91 13:12:59
Actually, this is the shortest introspective (at least using the
definitions used in this thread) I've found. Can anyone do better:
[189]porky:~%
[189]porky:~% touch the_prog
[190]porky:~% chmod +x the_prog
[191]porky:~% the_prog > the_output
[192]porky:~% diff the_prog the_output
[193]porky:~% wc the_prog
0 0 0 the_prog
[194]porky:~%
[194]porky:~% ls -l the_prog
-rwxr-xr-x 1 mayer 0 Mar 19 13:09 the_prog
This executable null-file produces no output. Does this count?
[BTW: what language is it using; I suspect it's a "sh" script, but I
can't really tell.
Note: similar versions exist for basic, lisp, and probably many other
languages as well.]
Ron Mayer