Page MenuHomeFreeBSD

cmp: add -b, --print-bytes
ClosedPublic

Authored by kevans on Sep 23 2021, 5:56 AM.
Tags
None
Referenced Files
F171332796: D32074.id95963.diff
Thu, Sep 10, 11:58 AM
Unknown Object (File)
Wed, Sep 9, 12:04 AM
Unknown Object (File)
Tue, Sep 8, 8:42 PM
Unknown Object (File)
Tue, Sep 8, 2:02 PM
Unknown Object (File)
Tue, Sep 8, 9:08 AM
Unknown Object (File)
Tue, Sep 8, 7:33 AM
Unknown Object (File)
Sun, Sep 6, 2:16 PM
Unknown Object (File)
Sun, Sep 6, 6:06 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

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

Event Timeline

usr.bin/cmp/misc.c
66

I'm not sure how important it is to be fully compatible, but gcmp prints "byte" instead of "char".

usr.bin/cmp/regular.c
131

Why %6o? Isn't 3 enough?

Hmm looks like this is what gcmp does.

usr.bin/cmp/misc.c
66

I think here it's better to just maintain internal consistency... I don't /think/ anyone's trying to parse the output.

usr.bin/cmp/regular.c
131

Right, %6o to be compatible with gcmp's output, but gcmp also (IIRC) had the first field only 3-wide.

This revision is now accepted and ready to land.Sep 23 2021, 6:53 PM
kevans marked 2 inline comments as done.

Maintain internal consistency in %b output, as well; %6o back to %3o.

This revision now requires review to proceed.Sep 23 2021, 7:18 PM
kevans marked an inline comment as not done.Sep 23 2021, 7:18 PM
kevans marked an inline comment as done.
This revision is now accepted and ready to land.Sep 29 2021, 1:57 PM
This revision was automatically updated to reflect the committed changes.