[Dev-luatex] set exit status

Reinhard Kotucha reinhard.kotucha at web.de
Fri Jul 12 20:43:43 CEST 2013


On 2013-07-12 at 13:46:38 +0100, T T wrote:

 > On 12 July 2013 10:36, Patrick Gundlach <patrick at gundla.ch> wrote:
 > > Hi,
 > >
 > > is it possible to programatically set the exit status of the LuaTeX run?
 > >
 > > say something like this:
 > >
 > >  tex.exitstatus = 1
 > >
 > > or \exitstatus=1 \bye
 > 
 > \directlua{os.exit(1)}

Or the other way round:

  tex.print([[\batchmode\errmessage{}\csname @@end\endcsname\end]])

Well, neither \directlua{} nor tex.print() is needed. ;)

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the dev-luatex mailing list