3 ms·
I would argue that it’s better to start with -e and deal with the handful of edge cases where something like grep is expected to return a non-zero value rather
by acdha 4y ago
I would argue that it’s better to start with -e and deal with the handful of edge cases where something like grep is expected to return a non-zero value rather than have to remember to check every command. We now have half a century of evidence suggesting that won’t work reliably for all but the most conscientious shell scripters.