Closed lorenzleutgeb closed 2 years ago
Thanks for reporting. This seems a duplicate of #248 and should be fixed on master (and actually in the very latest release, which was made just after). I will close. Let me know if there is still a problem.
Yes, sorry for duplicating, and thanks for fixing that issue, but as of 2022-01-28 master
points at af22466 which I am referring to. It seems that you missed latexdiff-vc
. Please fix and/or reopen.
I was very surprised to get non-zero exit codes for these invocations:
It turns out that you use
die
to print the version string and exit:https://github.com/ftilmann/latexdiff/blob/af22466ac358e69c3d932a986c1c9ed971b99585/latexdiff-vc#L150
However,
die
sets a non-zero exit code, indicating an error. When printing the version string is everything that the program should do, then I'd also expect it to exit with an exit code of zero once that's done.The documentation for
die
states:IMO,
print
followed byexit
should be used, like here:https://github.com/ftilmann/latexdiff/blob/af22466ac358e69c3d932a986c1c9ed971b99585/latexdiff#L490-L491