From 3e6902efc802ab57fc4e9bf798f2d271b152e7f9 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 14 Jul 2000 16:54:59 +0000 Subject: Add the -z flag to check file sizes first Correct the cmp.1 usage message Correct the -l/-s incompatibility message Submitted by: Mark Knight --- usr.bin/cmp/cmp.1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr.bin/cmp/cmp.1') diff --git a/usr.bin/cmp/cmp.1 b/usr.bin/cmp/cmp.1 index 60baf924da31..c8a5f2586d3a 100644 --- a/usr.bin/cmp/cmp.1 +++ b/usr.bin/cmp/cmp.1 @@ -43,7 +43,8 @@ .Nd compare two files .Sh SYNOPSIS .Nm cmp -.Op Fl l | Fl s +.Op Fl l | Fl s | Fl x +.Op Fl z .Ar file1 file2 .Op Ar skip1 Op Ar skip2 .Sh DESCRIPTION @@ -71,6 +72,9 @@ Like .Fl l but prints in hexadecimal and using zero as index for the first byte in the files. +.It Fl z +For regular files compare file sizes first, and fail the comparison if they +are not equal. .El .Pp The optional arguments -- cgit v1.3