See also this question on Reddit.
I want to automate running
pdflatex over and over with
pdflatex encounters a syntax error, it hangs, preventing
guard from being able to run it again.
Is there a command line flag, environment variable, or shell wrapper I can use to force
pdflatex to quit on error rather than wait for more input?