🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Mike Coleman Sat, 03 Feb 1990 03:18
exit status does not respect -B flag
#1710
Author: Mike Coleman
Date: Sat, 03 Feb 1990 03:18
13 lines
946 bytes
GNU diff version 1.12 exits with wrong status when -B flag is used.

For example, if the file a contains just newlines, 

	diff -B a /dev/null

exits with status 1, even though no differences are printed.

In file analyze.c, in the function diff_2_files, an assumption is made that
'script' will be null if there are no significant differences between the two
files.  It is possible however that the script consists entirely of change
nodes with all inserted and deleted fields equal to 0.  In this case, the
function should return 0.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads