Re: bug with exit status in LyX
On 30-Oct-2001 Lars Gullik Bjønnes wrote: yes, we should do that. But offhand I am not sure where to put it, and I have now time to look... So it definitely the right time to prepare an updated bug list before you change your mind... :-) I'm going to check my report this evening. Michael -- == Michael Schmittphone: +49 451 99 77 410 Glockenhaeuschen 8 eMail: [EMAIL PROTECTED] DE-54634 Bitburg, Germany WWW: http://www.teststep.org ==
Re: bug with exit status in LyX
On 30-Oct-2001 Lars Gullik Bjønnes wrote: > yes, we should do that. But offhand I am not sure where to put it, and > I have now time to look... So it definitely the right time to prepare an updated bug list before you change your mind... :-) I'm going to check my report this evening. Michael -- == Michael Schmittphone: +49 451 99 77 410 Glockenhaeuschen 8 eMail: [EMAIL PROTECTED] DE-54634 Bitburg, Germany WWW: http://www.teststep.org ==
bug with exit status in LyX
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
bug with exit status in LyX
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