Page MenuHomeFreeBSD

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

Authored by kevans on Sep 23 2021, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 19, 4:00 PM
Unknown Object (File)
Oct 8 2024, 4:06 PM
Unknown Object (File)
Oct 3 2024, 3:28 PM
Unknown Object (File)
Sep 26 2024, 3:21 PM
Unknown Object (File)
Sep 26 2024, 8:16 AM
Unknown Object (File)
Sep 22 2024, 4:18 AM
Unknown Object (File)
Sep 15 2024, 5:08 AM
Unknown Object (File)
Sep 9 2024, 3:54 AM
Subscribers

Details

Summary

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.