freebsd-skq/usr.bin/diff
Enji Cooper 2d920b13cb Fix exit status with -rq when there is a file in one directory but not another,
i.e., when print_only is called.

Prior to this change, -rq was always returning 0. After this change it will
return 1 if there is a difference between two directories.

This fixes compatibility with GNU diff and unbreaks backwards compatibility
expectations.

Found when trying to extend diff_test:brief_format_test.

MFC after:	2 months
MFC with:	r321076, r321077
2017-07-17 18:06:42 +00:00
..
tests Add some tests for brief (--brief/-q) format 2017-07-17 17:50:50 +00:00
diff.1 Cross reference pr(1) which diff might call with -l option 2017-04-20 19:14:52 +00:00
diff.c Add -H as an alias for --speed-large-file to match GNU diff. 2017-06-02 03:25:59 +00:00
diff.h Implement a basic --changed-group-format 2017-04-20 14:22:33 +00:00
diffdir.c Fix exit status with -rq when there is a file in one directory but not another, 2017-07-17 18:06:42 +00:00
diffreg.c Don't emit "diff: diff <options> arguments" when diffing files if 2017-07-17 17:36:04 +00:00
Makefile
TODO Update the TODO list to reflect what has been changed 2017-04-20 19:07:52 +00:00
xmalloc.c
xmalloc.h