Skip site navigation (1)Skip section navigation (2)
Date:      6 Dec 2003 15:57:42 -0000
From:      Erik Greenwald <erik@smluc.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        erik@smluc.org
Subject:   docs/59991: diff manpage lacks a return value section
Message-ID:  <20031206155742.6747.qmail@phoenix.smluc.org>
Resent-Message-ID: <200312061600.hB6G0aGm009857@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         59991
>Category:       docs
>Synopsis:       diff manpage lacks a return value section
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 06 08:00:36 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Erik Greenwald
>Release:        FreeBSD 5.2-BETA i386
>Organization:
>Environment:
System: FreeBSD fenris 5.2-BETA FreeBSD 5.2-BETA #0: Fri Nov 28 06:07:45 EST 2003 root@fenris:/usr/src/sys/i386/compile/FENRIS i386


	
>Description:
No text indicates what return values to expect from diff...

>How-To-Repeat:
	
>Fix:


--- diff.1.patch begins here ---
--- gnu/usr.bin/diff/diff.1.orig	Sat Dec  6 10:48:42 2003
+++ gnu/usr.bin/diff/diff.1	Sat Dec  6 10:54:16 2003
@@ -474,6 +474,10 @@
 .TP
 .B \-y
 Use the side by side output format.
+.SH RETURN VALUE
+.I diff
+returns a 0 if the files are identical or a 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
--- diff.1.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031206155742.6747.qmail>