summaryrefslogtreecommitdiffstats
path: root/grep-matcher
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-01-26 15:42:55 -0500
committerAndrew Gallant <jamslam@gmail.com>2019-01-26 15:44:49 -0500
commitf3164f2615ce18d3ea7b5ce122dfe2a381d1b3f4 (patch)
treedc67e0cfec9a55236526ee9dac0aac96255dca17 /grep-matcher
parent31d3e241306f305c1cb94e1882511da2b48dcd36 (diff)
exit: tweak exit status logic
This changes how ripgrep emit exit status codes. In particular, any error that occurs while searching will now cause ripgrep to emit a `2` exit code, where as it previously would emit either a `0` or a `1` code based on whether it matched or not. That is, ripgrep would only emit a `2` exit code for a catastrophic error. This tweak includes additional logic that GNU grep adheres to, which seems like good sense. Namely, if -q/--quiet is given, and an error occurs and a match occurs, then ripgrep will emit a `0` exit code. Closes #1159
Diffstat (limited to 'grep-matcher')
0 files changed, 0 insertions, 0 deletions