diff options
author | 2003-07-06 20:48:59 +0000 | |
---|---|---|
committer | 2003-07-06 20:48:59 +0000 | |
commit | 4ec4b3d54a5517b053ea56c6a0ae89ce93183500 (patch) | |
tree | b69056a72bdfd262d4624e75408caac48c13fac1 /usr.bin/diff/diff.1 | |
parent | various proto, ansi, and knf repair. tested on all architectures that (diff) | |
download | wireguard-openbsd-4ec4b3d54a5517b053ea56c6a0ae89ce93183500.tar.xz wireguard-openbsd-4ec4b3d54a5517b053ea56c6a0ae89ce93183500.zip |
Some fairly major changes:
o -N is implemented
o -X is implemented
o -x is implemented
o diff.c has been rewritten and GNU long options are now supported
o diffdir.c has been rewritten
+ no longer does fork + exec of /usr/bin/diff
+ can be called recursively (and will be for -r)
o diff.h
+ don't include any .h files here any more, do it in the .c files
+ no Bell Labs code in this, gets a UCB copyright (the 32v sources
only have a diff.c and there is nothing in common).
o diffreg.c
+ most all remaining globals are now private to diffreg.c
+ files are only opened once
+ dynamically allocated objects are either freed or realloced
+ added missing UCB copyright (there were lots of UCB changes)
+ print correct thing when -s is specified
OK deraadt@
Diffstat (limited to 'usr.bin/diff/diff.1')
-rw-r--r-- | usr.bin/diff/diff.1 | 33 |
1 files changed, 28 insertions, 5 deletions
diff --git a/usr.bin/diff/diff.1 b/usr.bin/diff/diff.1 index 3518ca11573..c555da5ddd0 100644 --- a/usr.bin/diff/diff.1 +++ b/usr.bin/diff/diff.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: diff.1,v 1.10 2003/07/04 17:50:24 millert Exp $ +.\" $OpenBSD: diff.1,v 1.11 2003/07/06 20:48:59 millert Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -56,14 +56,18 @@ .Op Fl U Ar number .Ar file1 file2 .Nm diff -.Op Fl abitw +.Op Fl abiNtw .Oo .Fl c | Fl e | Fl f | .Fl n | Fl u .Oc +.Bk -words .Op Fl r .Op Fl s .Op Fl S Ar name +.Op Fl X Ar file +.Op Fl x Ar pattern +.Ek .Ar dir1 dir2 .Sh DESCRIPTION The @@ -78,8 +82,6 @@ No output is produced if the files are identical. .Pp Output options (mutually exclusive): .Bl -tag -width Ds -.It Fl a -Treat all files as ASCII. .It Fl c Produces a diff with 3 lines of context. With @@ -168,6 +170,8 @@ lines of context. .Pp Comparison options: .Bl -tag -width Ds +.It Fl a +Treat all files as ASCII. .It Fl b Causes trailing blanks (spaces and tabs) to be ignored, and other strings of blanks to compare equal. @@ -197,6 +201,9 @@ will compare equal to .Pp Directory comparison options: .Bl -tag -width Ds +.It Fl N +If a file is found in only one directory, act as if it was found in the +other directory too but was of zero size. .It Fl r Causes application of .Nm @@ -210,6 +217,21 @@ Re-starts a directory .Nm in the middle, beginning with file .Ar name . +.It Fl X Ar file +Exclude files and subdirectories from comparison whose basenames match +lines in +.Ar file . +Multiple +.Fl X +options may be specified. +.It Fl x Ar pattern +Exclude files and subdirectories from comparison whose basenames match +.Ar pattern . +Patterns are matched using shell-style globbing via +.Xr fnmatch 3 . +Multiple +.Fl x +options may be specified. .El .Pp If both arguments are directories, @@ -381,7 +403,8 @@ An error occurred. .Xr cmp 1 , .Xr comm 1 , .Xr diff3 1 , -.Xr ed 1 +.Xr ed 1 , +.Xr fnmatch 3 .Sh HISTORY A .Nm |