News for hackers. Stuff that matters.
Re:Show HN: New unix utility "when" by lipanski on Wednesday December 11, 2013 @11:50AM (#6888659)
What's the difference between this and the bash '&&' operator? Except for the timebomb flag, I don't really see any difference. Please correct me if I got this wrong.

The '&&' operator, as in which ruby && echo 'found it!', triggers the second command, if the exit code of the first one is 0.

Also good to note, the '||' operator triggers the second command only if the exit code of the first one is different than 0. As in which ruby123456 || echo 'could not find it!'.

EDIT: typo.

Re:Show HN: New unix utility "when" by bichiliad on Wednesday December 11, 2013 @11:58AM (#6888744)
It looks like if the first parameter fails, then it is re-run until it succeeds.