| Summary: | Man page/implementation inconsitency of diff -U | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Niels Jansen <nhjansen> |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Niels Jansen
2002-04-04 09:30:01 UTC
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 This can be closed, as requested by originator. |