docs/59991: diff manpage lacks a return value section

Erik Greenwald erik at smluc.org
Sat Dec 6 16:00:45 UTC 2003


>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 at 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:



More information about the freebsd-doc mailing list