You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
If you need to exit the process with a specific exit code, see exit.
IMO, print followed by exit should be used, like here:
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:latexdiff/latexdiff-vc
Line 150 in af22466
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:latexdiff/latexdiff
Lines 490 to 491 in af22466
The text was updated successfully, but these errors were encountered: