Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

infinite loop that is possible to quit



How do I do an infinite loop that runs something, but it will
still be possible to quit the whole thing?

The best thing I've come up with is

while true; do
  # run program
  sleep 1
done

Then do, say, q to exit the program, and C-c during the sleep
period to quit the loop!

Is this good or bad?

TIA

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal





Messages sorted by: Reverse Date, Date, Thread, Author