On Wed, Oct 16, 2013 at 5:35 PM, Michael Kay <mike@saxonica.com> wrote:
Not on that definition it isn't. It calls the document() function, so it can't claim to "take no input". A program that copies its input, and is then run on itself, is not an interesting quine.
How about this shell quine?
#!/bin/cat
(Put it in a file foo, and type "sh foo" to a Unix shell.)