Re: [xml-dev] Self-replicating XML

From
John Cowan <>
To
Michael Kay <>
Date
2013-10-17T01:11:01Z
ID
<CABzTEQC4chC8GzhQnacj64sBtVZjZBCHLTJ==>
Thread
Re: [xml-dev] Self-replicating XML



On Wed, Oct 16, 2013 at 5:35 PM, Michael Kay <[email protected]> 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.) 

--
GMail doesn't have rotating .sigs, but you can see mine at http://www.ccil.org/~cowan/signatures