shithub: wiki.9front.org

Download patch

ref: 3f2c5f47dea5f8b85da32fb4726f9a5b299f0418
parent: 816cd76cbdfe5ac1b4caeb85f0231ef4a36294ef
author: kvik <kvik@a-b.xyz>
date: Thu Oct 29 12:41:09 EDT 2020

quine: add article from old wiki (thanks Amavect)

--- /dev/null
+++ b/quine.md
@@ -1,0 +1,9 @@
+# Plan 9's Quines
+
+Quine in rc.
+
+	a=`{echo ' a=`{echo '' Q '' }; q= W ; for(i in $a){if(~ $i Q){for(i in $a){if(~ $i $q) echo -n $q; echo -n $i E }};if not{if(~ $i W) echo -n $q$q$q$q E ; if not{if(~ $i E) echo -n $q$q E ; if not echo -n $i E }}};echo ' }; q= '''' ; for(i in $a){if(~ $i Q){for(i in $a){if(~ $i $q) echo -n $q; echo -n $i '' }};if not{if(~ $i W) echo -n $q$q$q$q '' ; if not{if(~ $i E) echo -n $q$q '' ; if not echo -n $i '' }}};echo 
+
+Share your solutions!
+
+[Quine on Wikipedia](https://en.wikipedia.org/wiki/Quine_(computing))