Hacker News new | ask | show | jobs
by chingjun 4577 days ago
What is the difference between this and 'while true; do cmd1 && cmd2; sleep 1; done'
2 comments

It looks to me more like

  until cmd1 ; do sleep 1 ; done ; cmd2
Exactly. But, see the -t flag, which is the real reason I wrote it. -t is a non-trivial script (if it's even possible in shell).

It defaults to the until behavior because it's most common.

Could you give some more examples of how you use `-t` ?
Yeah. I was thinking this.