[669] in Athena Bugs
A bug with diff <--(please put the name of the program here)
daemon@ATHENA.MIT.EDU (troxel@ATHENA.MIT.EDU)
Sun Aug 28 09:41:16 1988
From: <troxel@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Date: Sun, 28 Aug 88 09:40:29 EDT
Program with which you had the problem: diff
Name of person who discovered the bug: D. E. Troxel
Their MIT phone number: 3-2570
Their MIT address: 36-683
Their Athena Login ID: troxel
Name of consultant reporting bug: none
------------------------------------------------------------------------
A brief synopsis of the problem:
diff returns a bad error status when used to compare directories.
This makes it difficult to use diff within makefiles. Look at the
makefile and try them out to confirm my report.
The makefile and test directoruies are in athena:~troxel/diff.bug
Don Troxel
36-683
(617)253-2570
troxel@caf.mit.edu
#These work ok
files:
diff file1 file2
rbad:
diff -r two three
#These give errors when there should be none
same:
diff -r one one
rdirs:
diff -r one two
dirs:
diff one two
------------------------------------------------------------------------
Please describe the problem in detail (mention any necessary files or
commands that may be involved, on which machine the bug happened, and what
the program did that was wrong): see above
------------------------------------------------------------------------
Repeat by (please enter a set of commands which will allow us to
repeat the bug): see above
------------------------------------------------------------------------
Fix (if you know what it is):edit the cource for diff and fix the
return statements.