Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site noscvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!sdcrdcf!sdcsvax!noscvax!sloane From: sloane@noscvax.UUCP (Gary K. Sloane) Newsgroups: net.sources Subject: Thompson's self-reproducing program Message-ID: <598@noscvax.UUCP> Date: Thu, 23-Aug-84 12:32:24 EDT Article-I.D.: noscvax.598 Posted: Thu Aug 23 12:32:24 1984 Date-Received: Sat, 25-Aug-84 07:18:56 EDT Distribution: net Organization: Naval Ocean Systems Center Lines: 22 Compile this program as: cc -o s s.c main() { system("cat s.c"); } My friend Steve suggests the following alias in your .login: alias cat 'c \!*' With the obvious byte-reducing benefits to s.c when modified accordingly... * **************************************************************** * * Gary K. Sloane/Computer Sciences Corporation/San Diego, CA 92110 * * DDD: (619) 225-8401 * * MILNET: sloane@nosc * * UUCP: [ihnp4,akgua,decvax,dcdwest,ucbvax]!sdcsvax!noscvax!sloane * * **************************************************************** *