4 ms·
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
by lipanski 13y ago
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.
- bichiliad 13y agoIt looks like if the first parameter fails, then it is re-run until it succeeds.