| 0ab72f80 | 23-Sep-2021 |
Kyle Evans <[email protected]> |
cmp: add -i, --ignore-initial, an alternative to skip1/skip2 args
This is compatible with GNU cmp.
Reviewed by: markj Sponsored by: Klara, Inc.
(cherry picked from commit 8d546b6832eea031f95f30eae
cmp: add -i, --ignore-initial, an alternative to skip1/skip2 args
This is compatible with GNU cmp.
Reviewed by: markj Sponsored by: Klara, Inc.
(cherry picked from commit 8d546b6832eea031f95f30eaec3232ec1256a281)
show more ...
|
| 1159a71a | 23-Sep-2021 |
Kyle Evans <[email protected]> |
cmp: add -n, --bytes to limit number of bytes to compare
This is compatible with GNU cmp.
Reviewed by: markj Sponsored by: Klara, Inc.
(cherry picked from commit 4e380e8474609875c4cf5277b3755ac290
cmp: add -n, --bytes to limit number of bytes to compare
This is compatible with GNU cmp.
Reviewed by: markj Sponsored by: Klara, Inc.
(cherry picked from commit 4e380e8474609875c4cf5277b3755ac29079a8b5)
show more ...
|
| 80445b7a | 11-Jan-2021 |
Ed Maste <[email protected]> |
cmp: fix -s (silent) when used with skip offsets
-s causes cmp to print nothing for differing files, for use when only the exit status is of interest.
-z compares the file size first, for regular f
cmp: fix -s (silent) when used with skip offsets
-s causes cmp to print nothing for differing files, for use when only the exit status is of interest.
-z compares the file size first, for regular files, and fails the comparison early if they do not match.
Prior to this change -s implied -z as an optimization, but this is not valid when file offsets are specified. Now, enable the -z optimization for -s only if both skip arguments are not provided / 0.
Note that using -z with differing skip values will currently always fail. We may want to compare size1 - skip1 with size2 - skip2 instaead, and in any case the man page should be clarified.
PR: 252542 Fixes: 3e6902efc802ab57fc4e9bf798f2d271b152e7f9 Reported by: William Ahern Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28071
show more ...
|
| 109b5c10 | 21-Jan-2019 |
Mark Johnston <[email protected]> |
Fix cmp(1) tests for "special" mode.
Test failures don't seem to propagate up if atf_check is run in a pipeline. Thus, the tests continued to pass despite the bug reverted in r343245.
MFC after: 1
Fix cmp(1) tests for "special" mode.
Test failures don't seem to propagate up if atf_check is run in a pipeline. Thus, the tests continued to pass despite the bug reverted in r343245.
MFC after: 1 week
show more ...
|