In the script I presented in this question I encountered the following problem. In case of a compilation error, I have to cancel the execution of pdflatex 3 times. This can be very annoying. I would like to add something like
if pdflatex file.tex returned failure break script
However, I could find what values pdflatex returns when it exits. So the question is:
What are the exits/return values/codes of pdflatex?
