3 ms·
The bare idea of running a separate process as the condition of a loop is just disgusting though. I really don’t get why are we stuck with bash.
by kaba0 5y ago
The bare idea of running a separate process as the condition of a loop is just disgusting though. I really don’t get why are we stuck with bash.
- chrismorgan 5y agoIt’s not disgusting, it’s a superb feature of shell scripting and a manifestation of feature composition. That you can write things like `while git diff --exit-code` is delightful.
- kaba0 5y agoYes it is good for that occasion. It is terrible for things like `test`, `true` and the like as a separate processes.