2 ms·
Doesn't work. The output is 66 lines of text, the default page length in nroff. 65 of them are zero-length ("blank") lines. One line says ".self-replicate". I
by bediger4000 4y ago
Doesn't work. The output is 66 lines of text, the default page length in nroff. 65 of them are zero-length ("blank") lines. One line says ".self-replicate".
I've tried several times, ChatGPT can't come up with a self-replicating nroff macro.
A file of 66 blank lines is a self-replicating nroff document. It just doesn't run anything, and therefore violates the usual quine/self-replicating program rules that prohibit mere copying of input to output:
$ cat < /usr/bin/cat > cat2
certainly self-replicates, but misses solving the mysteries of self-replication.