[luatex] [MiKTeX] Calling texlua from texlua, with a space in the tex binary path

Akira Kakuto kakuto at fuk.kindai.ac.jp
Wed Nov 5 06:49:53 CET 2014


Dear Siep Kroonenberg,

> If you need values of variables setenved in the current
> process, please initialize kpse and use kpse.var_value().
> FYI, os.getenv() is defined in the lua52.dll and os.setenv()
> is defined in the texlua.

I have
ThisIsTheValue
ThisIsTheValue

by
texlua curr.tlu

Here curr.tlu and child.tlu are

-- curr.tlu
kpse.set_program_name('test')
os.setenv('XXXYYY', 'ThisIsTheValue')
print(kpse.var_value('XXXYYY'))
os.execute('texlua child.tlu')


-- child.tlu
print(os.getenv('XXXYYY'))


Thanks,
Akira



More information about the luatex mailing list