aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp/cmp.1
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-09-23 05:46:30 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-10-03 05:15:12 +0000
commit6a1ef178d86a62a5377496ade866ea31bbfc6ec0 (patch)
tree8771418d724295befd59df6e84256e6d756fc134 /usr.bin/cmp/cmp.1
parent0ab72f80ab69888e69821e996d52180f02158105 (diff)
cmp: add -b, --print-bytes
This is compatible with GNU cmp. Reviewed by: bapt, markj (earlier version) Sponsored by: Klara, Inc. (cherry picked from commit f66b9b40f403f7c30fec3c4ceed93c6e8fafa8ac)
Diffstat (limited to 'usr.bin/cmp/cmp.1')
-rw-r--r--usr.bin/cmp/cmp.15
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cmp/cmp.1 b/usr.bin/cmp/cmp.1
index 5a56802bd22e..3e616bbe806e 100644
--- a/usr.bin/cmp/cmp.1
+++ b/usr.bin/cmp/cmp.1
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl l | s | x
-.Op Fl hz
+.Op Fl bhz
.Op Fl -ignore-initial Ns Cm = Ns Ar num1 Ns Op :num2
.Op Fl -bytes Ns Cm = Ns Ar num
.Ar file1 file2
@@ -59,6 +59,8 @@ Bytes and lines are numbered beginning with one.
.Pp
The following options are available:
.Bl -tag -width indent
+.It Fl b , Fl -print-bytes
+Print each byte when a difference is found.
.It Fl h
Do not follow symbolic links.
.It Fl i Ar num1 Ns Oo :num2 Oc , Fl -ignore-initial= Ns Ar num1 Ns Op :num2
@@ -187,6 +189,7 @@ utility is expected to be
.St -p1003.2
compatible.
The
+.Fl b ,
.Fl h ,
.Fl i ,
.Fl n ,