aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-07-19 23:19:49 +0300
committerLasse Collin <lasse.collin@tukaani.org>2022-07-19 23:19:49 +0300
commitd796b6d7fdb8b7238b277056cf9146cce25db604 (patch)
treed7401aa937e58e3d3906df484db8aff8b37c04de
parentxzgrep: Improve error handling, especially signals. (diff)
downloadxz-d796b6d7fdb8b7238b277056cf9146cce25db604.tar.xz
xzgrep man page: Document exit statuses.
Diffstat (limited to '')
-rw-r--r--src/scripts/xzgrep.115
1 files changed, 14 insertions, 1 deletions
diff --git a/src/scripts/xzgrep.1 b/src/scripts/xzgrep.1
index 20850958..e0514b8b 100644
--- a/src/scripts/xzgrep.1
+++ b/src/scripts/xzgrep.1
@@ -6,7 +6,7 @@
.\"
.\" License: GNU GPLv2+
.\"
-.TH XZGREP 1 "2021-11-13" "Tukaani" "XZ Utils"
+.TH XZGREP 1 "2022-07-19" "Tukaani" "XZ Utils"
.SH NAME
xzgrep \- search compressed files for a regular expression
.SH SYNOPSIS
@@ -78,6 +78,19 @@ The same applies to names
and
.BR lzfgrep ,
which are provided for backward compatibility with LZMA Utils.
+.SH EXIT STATUS
+.TP
+0
+At least one match was found from at least one of the input files.
+No errors occurred.
+.TP
+1
+No matches were found from any of the input files.
+No errors occurred.
+.TP
+>1
+One or more errors occurred.
+It is unknown if matches were found.
.SH ENVIRONMENT
.TP
.B GREP