From: Joshua Ballanco Date: 2009-06-01T14:59:02+09:00 Subject: Re: [QUIZ] Quine (#207) On May 31, 2009, at 10:45 PM, Martin DeMello wrote: > On Mon, Jun 1, 2009 at 10:00 AM, Matthew Williams > wrote: >> >> Version 3, cheating (unix only): >> >> puts `cat #{$0}` > > here's my extremely cheating 10-byte version: > > # sudo ln -s /bin/cat /usr/local/bin/c > # echo | ruby -p q.rb > $_=`c #$0` > > martin That was essentially my original cheat, then my friend pointed out this simple modification to get to 8 bytes: > cat a $><<`a` > ruby a $><<`a` > which a /usr/local/bin/a > cat `which a` #!/usr/bin/env ruby puts '$><<`a`' - Josh