summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2004-02-01 13:52:19 +0000
committerceri <ceri@FreeBSD.org>2004-02-01 13:52:19 +0000
commitb5ad8f097f3e6536092e25b95963c148bedc8d2c (patch)
tree16fa3330a8146b9f02c7111e3b1466247518802a /gnu/usr.bin
parent5edb78e87d0e38ce42c0b7396eabaaac037d1304 (diff)
downloadFreeBSD-src-b5ad8f097f3e6536092e25b95963c148bedc8d2c.zip
FreeBSD-src-b5ad8f097f3e6536092e25b95963c148bedc8d2c.tar.gz
Add a section documenting the return values from diff.
PR: docs/59991 Submitted by: keramida,Erik Greenwald <erik@smluc.org> MFC After: 1 week
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/diff/diff.15
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/diff/diff.1 b/gnu/usr.bin/diff/diff.1
index 0164f23..f04d90f 100644
--- a/gnu/usr.bin/diff/diff.1
+++ b/gnu/usr.bin/diff/diff.1
@@ -474,6 +474,11 @@ match any pattern contained in
.TP
.B \-y
Use the side by side output format.
+.SH RETURN VALUE
+.I diff
+returns 0 if the files are identical or 1 if the files differ.
+If one or both of the files cannot be opened,
+then the return value is set to 2.
.SH ENVIRONMENT
The environment variable
.B DIFF_OPTIONS
OpenPOWER on IntegriCloud