git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: test suite failures because cmp behaves oddly

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 17, 2007, 23:16 UTC
Message-ID
<Pine.LNX.4.63.0702180015470.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7v3b54s7y3.fsf@assigned-by-dhcp.cox.net>
Hi,
On Sat, 17 Feb 2007, Junio C Hamano wrote:
Show 16 quoted lines
> 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.
Was me. AFAIR it was fixed in CVS.

Ciao, Dscho

Previous: Junio C Hamano
Message 3 of 3 in “test suite failures because cmp behaves oddly”
  1. Johannes SixtFeb 17, 2007
  2. Junio C HamanoFeb 17, 2007
  3. Johannes SchindelinFeb 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.