help quine

Title

quine -- A quine in Stata

Syntax

quine

Description

A quine is a computer program that prints itself out when run. A quine is not allowed to load any data and must contain any data that it uses. Hence, entering
the command quine at the Stata command prompt results in the quine command reproducing itself.

Comments

The Wikipedia entry for quines has some historical information on quines, including the origins
of the term "quine." Creating a quine takes a little finesse, but the basic idea can be summed up by the psuedo-code:

Print whatever follows this statement in quotes twice, the second time in quotes: "Print whatever follows this statement in quotes twice, the second time in quotes:"

Examples

quine

viewsource quine.ado

Examples from a long and varied list of computer languages can be found at The Quine Page.

Author

This command was written by Matthew J. Baker (matthew.baker@hunter.cuny.edu), Hunter College and The Graduate Center, CUNY. Comments, criticisms, and suggestions for improvement are welcome.