self-abusing C programs

John Carl Zeigler jcz at ncsu.UUCP
Fri Aug 31 23:29:40 AEST 1984

Re:    main(){system("cat foo.c");}

I beleive there is an implicit assumption that programs that
simply print out their source files do not qualify as
"self reproducing" because they are so trivial.  If we alow this,
then cat can produce any arbitrary program whose source is already
on the system.  Not very exciting.

North Carolina State University

More information about the Comp.lang.c mailing list