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’t know if that’s ‘cheating’… but oh well… it’s still interesting heh š
Cheers,
Ferdy