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)
Feb 7 2024, 6:22 AM
Unknown Object (File)
Dec 20 2023, 6:06 AM
Unknown Object (File)
Dec 14 2023, 8:36 PM
Unknown Object (File)
Dec 13 2023, 6:22 PM
Unknown Object (File)
Nov 13 2023, 2:36 PM
Unknown Object (File)
Nov 13 2023, 2:36 PM
Unknown Object (File)
Nov 13 2023, 1:25 PM
Unknown Object (File)
Nov 11 2023, 2:31 PM
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.