Skip to content

Instantly share code, notes, and snippets.

Created June 2, 2014 04:02
What would you like to do?
A shell one-liner for an infinite loop (sh/zsh/bash compatible)
while true; do date; sleep 5; done
Copy link

jj1bdx commented Jun 1, 2021

I've got nothing personal against zsh or bash, and I appreciate shorter scripts posted for bash and zsh. Still, maintaining the backward compatibility even in such a small script like in this gist is important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment