1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Andrew Gallant f3164f2615
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
2019-01-26 15:44:49 -05:00
..
data grep-cli: support Brotli/Zstd decompression 2019-01-22 20:56:16 -05:00
feature.rs config: add --no-ignore-dot flag 2019-01-26 13:40:12 -05:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs regex: make CRLF hack more robust 2019-01-26 12:34:28 -05:00
macros.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
misc.rs grep-cli: support Brotli/Zstd decompression 2019-01-22 20:56:16 -05:00
multiline.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
regression.rs exit: tweak exit status logic 2019-01-26 15:44:49 -05:00
tests.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
util.rs tests: touch up tests on Windows 2018-08-21 23:05:52 -04:00