News for hackers. Stuff that matters.
Re:Show HN: New unix utility "when" by chingjun on Wednesday December 11, 2013 @11:46AM (#6888630)
What is the difference between this and 'while true; do cmd1 && cmd2; sleep 1; done'
Re:Show HN: New unix utility "when" by mooism2 on Wednesday December 11, 2013 @12:03PM (#6888793)
It looks to me more like

  until cmd1 ; do sleep 1 ; done ; cmd2
Re:Show HN: New unix utility "when" by apgwoz on Wednesday December 11, 2013 @12:06PM (#6888826)
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.

Re:Show HN: New unix utility "when" by sciurus on Friday December 13, 2013 @09:48AM (#6900711)
Could you give some more examples of how you use `-t` ?
Re:Show HN: New unix utility "when" by d_theorist on Wednesday December 11, 2013 @12:14PM (#6888883)
Yeah. I was thinking this.