diff options
author | Daniel <kingdread@gmx.de> | 2020-06-07 02:12:28 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-06-07 02:12:28 +0200 |
commit | d12aec96e755306f53d7f9b162a95cb6144cab02 (patch) | |
tree | f9b760ba7c2aeb280811fad8010e9d35ddaa4c4c /raidgrep.1.asciidoc | |
parent | 642bf28c79cc39def7105460452cd60957958b23 (diff) | |
download | raidgrep-d12aec96e755306f53d7f9b162a95cb6144cab02.tar.gz raidgrep-d12aec96e755306f53d7f9b162a95cb6144cab02.tar.bz2 raidgrep-d12aec96e755306f53d7f9b162a95cb6144cab02.zip |
make exit status dependent on search results
Diffstat (limited to 'raidgrep.1.asciidoc')
-rw-r--r-- | raidgrep.1.asciidoc | 7 |
1 files changed, 7 insertions, 0 deletions
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. |