From d12aec96e755306f53d7f9b162a95cb6144cab02 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 7 Jun 2020 02:12:28 +0200 Subject: make exit status dependent on search results --- raidgrep.1.asciidoc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'raidgrep.1.asciidoc') diff --git a/raidgrep.1.asciidoc b/raidgrep.1.asciidoc index 584713e..7cb3f38 100644 --- a/raidgrep.1.asciidoc +++ b/raidgrep.1.asciidoc @@ -231,6 +231,13 @@ Any options given in this mode will apply to the whole REPL session. For example, if started with *-l*, all REPL evaluations will only print the file names of the matching files. +== EXIT STATUS + +raidgrep will exit with status 0 (success) if at least one matching log was +found, with status 1 if no logs were found and status 2 if there was an error. + +If used with the REPL mode, raidgrep will always exit with status 0. + == EXAMPLES The following are examples of predicates as they might be entered in the REPL. -- cgit v1.2.3