Skip to content

Instantly share code, notes, and snippets.

@sjkillen
Last active February 2, 2022 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjkillen/e5b0c504967e24806393cc44e93d8504 to your computer and use it in GitHub Desktop.
Save sjkillen/e5b0c504967e24806393cc44e93d8504 to your computer and use it in GitHub Desktop.
Infinitely looping program that demonstrates that bash programs are modifiable during execution
S='sleep 1; echo hello world; echo "$S" >> quine.bash; sleep 1'
sleep 1
echo hello world
echo "$S" >> quine.bash
sleep 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment