Y
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
mooism2
4577 days ago
It looks to me more like
until cmd1 ; do sleep 1 ; done ; cmd2
link
apgwoz
4577 days ago
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.
link
sciurus
4575 days ago
Could you give some more examples of how you use `-t` ?
link
d_theorist
4577 days ago
Yeah. I was thinking this.
link