Closed mikccc closed 4 years ago
Hmm, I tried to start on this, but contradictory to man page I am getting exit code 1 when error (e.g. ed command failed) and 2 when some differences found (v command).
etc-update, which is a tool for Gentoo that performs a similar function to rpmconf, uses sdiff by default. Perhaps looking at their code can give you some insight? See: https://github.com/gentoo/portage/blob/master/bin/etc-update
Looking at their code, it seems they use the following call syntax: "sdiff -s -o %merged %old %new" where %merged is the target output filename, %old is the original file, and %new is the newer file to compare with.
This is handled from within the function "do_merge()" around line 567
Done in 1f3577916678c391614c8e1091645a8a1f3c8347
Please consider adding support for sdiff.
https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-sdiff