shithub: wiki.9front.org

ref: 45f6dd9f8e21e2e8d6b185d39b2f36098e62b286
dir: /quine.md/

View raw version
# 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))