* [EMAIL PROTECTED] [Fri, 6 Aug 2004 at 18:57 -0500] <quote> > How come the following script deletes itself? > > #!/bin/rm > # Self-deleting script. > > # Nothing much seems to happen when you run this... except that the file > disappears. > > WHATEVER=65 > > echo "This line will never print (betcha!)." > > exit $WHATEVER # Doesn't matter. The script will not exit here. </quote>
Along those lines, this makes an excellent quine: #!/bin/cat I guess that's kinda cheating because your printing the file and not re- producing it, but hey, it's still cool :)
pgpIbOqYH5uNQ.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
