Is "Quine" possible in bash?
I stumbled across a site that listed "Quines" - programs that self replicate (well, they output a printout or display of their own code and nothing else useful...).
I wondered if anyone has tried this with Bash??
Discussion, talk and tips
https://forum.puppylinux.com/
I stumbled across a site that listed "Quines" - programs that self replicate (well, they output a printout or display of their own code and nothing else useful...).
I wondered if anyone has tried this with Bash??
under unix shells there is...
Author: Bruce Ediger (ediger@rtgds1.den.mmc.com)
Note: I hesitate to include this one. Do NOT run it, as it will fill up your HD
with ease.a='echo a=$c${a}$c > $$;echo b=$c${b}$c >> $$;echo c=$b${c}$b >> $$; echo $a >> $$;
chmod +x $$; ./$$'
b='"'
c="'"
echo a=$c${a}$c > $$;echo b=$c${b}$c >> $$; echo c=$b${c}$b >> $$;echo $a >> $$; chmod
+x $$; ./$$