bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cmp: output of differing byte values in octal is undocumented and may no


From: Alain Kalker
Subject: cmp: output of differing byte values in octal is undocumented and may not be apparent
Date: Sun, 03 Feb 2008 22:00:25 +0100

When comparing files using "cmp -l", the fact that cmp outputs the
differing bytes in octal seems not to be documented anywhere. This can
lead to some nasty surprises for someone not "in the know".
Also, the output itself in no way suggests that the byte values are in
octal (e.g. by using an initial digit '0'), so unless there are
differing bytes with values > (decimal) 175, there is nothing to suggest
that they are.

I understand that changing cmp to output octal values using a leading
'0' could lead to older scripts breaking, so I would like to ask to at
least consider updating the documentation on this.

Regards,

Alain Kalker




reply via email to

[Prev in Thread] Current Thread [Next in Thread]