[Toybox] cmp.c EOF notice on stderr vs stdout

Elie De Brauwer eliedebrauwer at gmail.com
Thu Jul 5 11:19:19 PDT 2012


Hi all,

In this changeset http://www.landley.net/hg/toybox/rev/e7c742f78361 the 
EOF notification of cmp.c went to stdout iso of to stderr.

This however causes the cmp tests to fail, since on my debian laptop 
with the fsf cmp it goes to stderr:

edb at lapedb:/tmp$ cat input
ab
c
xedb at lapedb:/tmp$ cat input2
ab
cedb at lapedb:/tmp$ cmp input input2
cmp: EOF on input2
edb at lapedb:/tmp$ cmp input input2 > /dev/null
cmp: EOF on input2
edb at lapedb:/tmp$ cmp input input2 2> /dev/null
edb at lapedb:/tmp$

I have attached a patch to match this behavior, if there is some deeper 
reason for the change in hg, then we'll do it the other way around and 
modify the tests.

gr
E.



-- 
Elie De Brauwer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmp.c.patch
Type: text/x-patch
Size: 593 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120705/5e3b64cc/attachment-0006.bin>


More information about the Toybox mailing list