Source-Changes archive

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

CVS commit: src/usr.bin/diff



Module Name:    src
Committed By:   nia
Date:           Fri Dec 19 09:59:41 UTC 2025

Modified Files:
        src/usr.bin/diff: diff.c diff.h diffreg.c

Log Message:
diff(3): Match GNU diff behaviour for -q option.

-q option in GNU diff overrides all previously specified output
formats and simply exits early depending on whether the input files
contain differences.

In FreeBSD diff, combining -q with other output options results
in the program printing its usage.

Matching the GNU behaviour allows using unmodified old versions of the
pkgsrc mkpatches tool with this version of diff.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/diff/diff.c src/usr.bin/diff/diff.h \
    src/usr.bin/diff/diffreg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index