Skip to content

Instantly share code, notes, and snippets.

@sjkillen
Last active February 2, 2022 19:58
Show Gist options
  • 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