Re: [hackers] [PATCH][sbase] cmp: Make output POSIX compliant

From: Laslo Hunhold <>
Date: Sun, 19 May 2019 20:42:56 +0000


just as a quick note: the "byte" wording was used deliberately, as POSIX makes the common mistake to mistake one for the other. Given sbase/ubase should be better than that, we decided to clarify here that cmp really just counts bytes rather than characters.

If you know a script that breaks from it, it is a good reason to change it, but in my opinion a much clearer interactive response is much more important. Come to think of it, the output is hard to parse anyway.

With best regards


On May 19, 2019 3:37:01 PM UTC, Richard Ipsum <> wrote:

>- printf("%s %s differ: byte %zu, line %zu\n",
>+ printf("%s %s differ: char %zu, line %zu\n",
Received on Sun May 19 2019 - 22:42:56 CEST

This archive was generated by hypermail 2.3.0 : Sun May 19 2019 - 22:48:23 CEST