Re: test suite failures because cmp behaves oddly

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

 



Hi,

On Sat, 17 Feb 2007, Junio C Hamano wrote:

> Johannes Sixt <johannes.sixt@xxxxxxxxxx> 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.

Was me. AFAIR it was fixed in CVS.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]