XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Self-replicating XML




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.) 

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS