Hi,
base patch cannot work with diffs of binary files. It might help to say
so in the manpage since other implementations do support this (ab)use of
patch. OK?
Christopher
Index: patch.1
===================================================================
RCS file: /cvs/src/usr.bin/patch/patch.1,v
retrieving revision 1.33
diff -u -p -r1.33 patch.1
--- patch.1 9 Nov 2021 16:13:40 -0000 1.33
+++ patch.1 20 Dec 2021 15:00:52 -0000
@@ -655,6 +655,8 @@ However, the results are guaranteed to b
applied to exactly the same version of the file that the patch was
generated from.
.Sh BUGS
+No support for patching binary files.
+.Pp
Could be smarter about partial matches, excessively deviant offsets and
swapped code, but that would take an extra pass.
.Pp