Page MenuHomeFreeBSD

cmp: add -n, --bytes to limit number of bytes to compare
ClosedPublic

Authored by kevans on Sep 23 2021, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 10:49 PM
Unknown Object (File)
Tue, Dec 3, 10:17 PM
Unknown Object (File)
Fri, Nov 29, 3:59 PM
Unknown Object (File)
Tue, Nov 26, 4:50 AM
Unknown Object (File)
Mon, Nov 25, 5:30 PM
Unknown Object (File)
Mon, Nov 25, 1:14 AM
Unknown Object (File)
Nov 19 2024, 2:28 AM
Unknown Object (File)
Nov 15 2024, 3:07 PM
Subscribers

Details

Summary

This is compatible with GNU cmp.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41659
Build 38548: arc lint + arc unit

Event Timeline

markj added inline comments.
usr.bin/cmp/cmp.c
94

for consistency with handling of expand_number() errors elsewhere.

98

Cases are typically sorted, i.e., case 'n' should come after case 'l'.

usr.bin/cmp/link.c
76

We pass skip1 and skip2 as parameters to each comparison function, but limit a global var. Is there any reason it can't also be a function parameter?

This revision is now accepted and ready to land.Sep 23 2021, 6:33 PM
kevans added inline comments.
usr.bin/cmp/cmp.c
98

I fixed the sorting in the other two, as well...

kevans marked an inline comment as done.

Address commentary

This revision now requires review to proceed.Sep 23 2021, 7:15 PM
This revision is now accepted and ready to land.Sep 29 2021, 1:58 PM