{"id":31,"date":"2005-08-02T22:18:00","date_gmt":"2005-08-02T22:18:00","guid":{"rendered":""},"modified":"2005-08-02T22:18:00","modified_gmt":"2005-08-02T22:18:00","slug":"simplest_bash_quine","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ferdy\/2005\/08\/02\/simplest_bash_quine\/","title":{"rendered":"Simplest bash quine ?"},"content":{"rendered":"<p>Playing around with some of the new bash-3 features I accidentally found a really simple quine:<\/p>\n<p><code>[ $ ~ ] cat quine.bash<br \/>\necho ${BASH_COMMAND}<br \/>\n[ $ ~ ] bash quine.bash<br \/>\necho ${BASH_COMMAND}<br \/>\n[ $ ~ ]<\/code><\/p>\n<p>Of course it only works on bash-3. I don&#8217;t know if that&#8217;s &#8216;cheating&#8217;&#8230; but oh well&#8230; it&#8217;s still interesting heh \ud83d\ude42<\/p>\n<p>Cheers,<br \/>\nFerdy<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Playing around with some of the new bash-3 features I accidentally found a really simple quine: [ $ ~ ] cat quine.bash echo ${BASH_COMMAND} [ $ ~ ] bash quine.bash echo ${BASH_COMMAND} [ $ ~ ] Of course it only works on bash-3. I don&#8217;t know if that&#8217;s &#8216;cheating&#8217;&#8230; but oh well&#8230; it&#8217;s still interesting &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ferdy\/2005\/08\/02\/simplest_bash_quine\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Simplest bash quine ?<\/span><\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts\/31"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/comments?post=31"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/media?parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/categories?post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ferdy\/wp-json\/wp\/v2\/tags?post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}