AnswerBun.com

latex l3sys get exit code of script

TeX - LaTeX Asked by aaaaaaaaaa on January 13, 2021

I am using l3sys of the latex3 interfaces, i need to get the exit code of a script after running it. I am running sys_get_shell:nnN, i tried giving it echo $? and echo $, but the shell for some reason interprets $? as the literal characters not the exit code of the last command, thus echo $? fails because it is missing one $ for a math environment, and echo $? fails with ! TeX capacity exceeded, sorry [input stack size=5000]. for some reason, that i do not know.

Is there a way to make this work, or is there an interface to the exit code that i missed, or can i make a command fail if the script fails in some other way?

Add your own answers!

Related Questions

Multi-line curly brackets in a (text mode) table

2  Asked on April 9, 2021 by t-f

 

Store URLs in a macro without replaceing # and %

2  Asked on April 9, 2021 by peter-grill

   

Add a vertical image in the chapter page

0  Asked on April 9, 2021 by learning-from-masters

     

tikz: tabbing environment in nodes

1  Asked on April 9, 2021

   

Vertical Rule in PGF Plottable

1  Asked on April 9, 2021 by stephank

     

theorem numeration in appendix

1  Asked on April 9, 2021

 

a quick way to add graph and sketches to lyx

0  Asked on April 8, 2021 by yonatan-marom

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir