4 ms·
The exit value is always 0 regardless of what's printed on stderr. If code parses stderr to determine error state instead of looking at the exit code, then it'
by bluesmoon 9y ago
The exit value is always 0 regardless of what's printed on stderr. If code parses stderr to determine error state instead of looking at the exit code, then it's doing unix wrong.
- fhood 9y agoYeah, but you may be parsing standard error regardless.
- scj 9y agoIf evaluating stderr, the first step should be determining if a line is of a known format before treating it as an input. I'm not sure how well that'd work due to the lack of buffering. But I wouldn't want to go anywhere near stderr in production code.
- deleted 9y ago[deleted]