q=\';s=';echo "q=\\$q;s=$q$s$q$s"';echo "q=\\$q;s=$q$s$q$s"
q=\';s=';sh -c "q=\\$q;s=$q$s$q$s&"';sh -c "q=\\$q;s=$q$s$q$s&"Most people recognize the C version better (except for Perl programmers of course):
main(){while(!fork()){}}
clear;-(){ printf ".\10\33[\10$((19>>($1)%4&7))";};.(){Nat prefers the version without clear and with a sleep to slow it down:
set .\ $*\ -$2 -\ $*;[ ${4:5} ]||($1$2;$3$4;$1 +$4;$3;$1 +$4;$3-$4;$1-$2)};. 7 +1
l(){ sleep .1;printf ".\e[\10$((19>>($1)%4&7))\b";};.(){These work with bash. No idea about other shells. Can someone come up with a version with both the clear and the sleep, in less than 140 bytes?
set .\ $*\ -$2 l\ $*;[ ${4:5} ]||($1$2;$3$4;$1 +$4;$3;$1 +$4;$3-$4;$1-$2)};. 7 +1
Labels: justforfun, nat, shell, twitter