An example in shell :
cat $0
Indeed :
$ echo 'cat $0' > quine.sh && chmod +x quine.sh && ./quine.sh
cat $0
For a language such as C, you have to find yourself an answer.


Note : Displaying its source code is one thing, copy it in another program is another one. The concept of code transfer is the starting gate of viruses.


Back to the enigma

Back to the enigmas

Home