Hello, I'm using Lyx version 1.1.6fix1
there's the following behaviour that prohibits asking LyX in a shell script if an export (say, lyx -e pdf file.lyx) was successfull: Produce an error in a LyX-File (e.g. by placing an undefined control sequence like "\lyxqqw" in a math formula). Then run LyX to export this document to pdf: lyx -e pdf document.lyx As you expect it, it ends up with an error and does not export anything: matthias@matthias03:~/LebensPlanung/Prj0072-Informatik/VorlMod.LernArbTk > lyx -e pdf LernArbTk.mitFehler.lyx About to handle -x 'buffer-export pdf' Converting from latex to dvi Running latex LaTeX Durchlauf Nr. 1 ---------------------------------------- Es sind Fehler beim LaTeX-Lauf aufgetreten. Ein Fehler ist aufgetreten Sie sollten versuchen, ihn zu beheben. ---------------------------------------- We are done! matthias@matthias03:~/LebensPlanung/Prj0072-Informatik/VorlMod.LernArbTk > Nonetheless, the exit status $? of LyX is 0, as if all would be OK. In spite of this, the exit status of LaTeX that LyX calls here (latex document.tex) is 1, only 0 if LaTeX did not find any errors. Could that be changed so that the exit status indicates if the command (here to export a file) was successive? Would be fine for scripting purposes ... Thank you! <>< Matthias