Re: test suite failures because cmp behaves oddly

From: Junio C Hamano <junkio@cox.net>
Date: 2007-02-18 10:03:32
Johannes Sixt <johannes.sixt@telecom.at> writes:

> Does anyone know how 'cmp' can signal success when its output is redirected 
> to /dev/null, even if the compared files are different?
>
> $ cmp M.sum actual7.sum; echo $?
> M.sum actual7.sum differ: char 20, line 2
> 1
> $ cmp M.sum actual7.sum > /dev/null; echo $?
> 0
> ...
> Has anyone seen something like this?

I vaguely recall this reported long time ago from one of the
regulars on the list, but googling or gmane search came up
empty.




-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Feb 18 10:03:50 2007

This archive was generated by hypermail 2.1.8 : 2007-02-18 10:05:50 EST