From nobody@FreeBSD.org  Thu Apr  4 00:22:07 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 018E337B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Apr 2002 00:22:04 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g348M3S53145;
	Thu, 4 Apr 2002 00:22:03 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200204040822.g348M3S53145@freefall.freebsd.org>
Date: Thu, 4 Apr 2002 00:22:03 -0800 (PST)
From: Niels Jansen <nhjansen@xs4all.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Man page/implementation inconsitency of diff -U
X-Send-Pr-Version: www-1.0

>Number:         36737
>Category:       docs
>Synopsis:       Man page/implementation inconsitency of diff -U
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 04 00:30:01 PST 2002
>Closed-Date:    Mon Apr 08 01:56:02 PDT 2002
>Last-Modified:  Mon Apr 08 01:56:02 PDT 2002
>Originator:     Niels Jansen
>Release:        FreeBSD 4.5-STABLE
>Organization:
>Environment:
FreeBSD rain.kas.enertel.nl 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Mar 27 11:17:20 CET 2002     root@rain.kas.enertel.nl:/usr/obj/usr/src/sys/RAIN  i386
>Description:
Man page states that diff -U defaults to a context of 3 lines when a number of lines is not given. Not giving a number of lines however results in the following error:
diff: invalid context length argument

I know diff is contrib software, but i thought i'd send it in anyway.
>How-To-Repeat:
diff -U <fromfile> <tofile>
>Fix:

>Release-Note:
>Audit-Trail:

From: Peter Pentchev <roam@ringlet.net>
To: Niels Jansen <nhjansen@xs4all.nl>
Cc: bug-followup@FreeBSD.org
Subject: Re: docs/36737: Man page/implementation inconsitency of diff -U
Date: Thu, 4 Apr 2002 11:49:22 +0300

 On Thu, Apr 04, 2002 at 12:22:03AM -0800, Niels Jansen wrote:
 > 
 > >Number:         36737
 > >Category:       docs
 > >Synopsis:       Man page/implementation inconsitency of diff -U
 > >Originator:     Niels Jansen
 > >Description:
 > Man page states that diff -U defaults to a context of 3 lines when a number of lines is not given. Not giving a number of lines however results in the following error:
 > diff: invalid context length argument
 > 
 > I know diff is contrib software, but i thought i'd send it in anyway.
 > >How-To-Repeat:
 > diff -U <fromfile> <tofile>
 
 Well.. try reading the manual page again :)  The '-U' option *always*
 takes an argument; it's the '-u' (lowercase) option that uses three
 lines by default.
 
 It would seem the documentation is correct in this case :)
 
 G'luck,
 Peter
 
 -- 
 Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
 PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
 Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
 .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Mon Apr 8 01:55:45 PDT 2002 
State-Changed-Why:  
This can be closed, as requested by originator. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36737 
>Unformatted:
