[luatex] os.setenv and getenv

Norbert Preining preining at logic.at
Thu Aug 8 03:47:30 CEST 2013

Hi everyone,

I am playing around with the runscript.tlu for WIndows TeX Live,
and realize that:
	foo = os.getenv('PATH')
	-- add some elements to the path
	os.setenv('PATH', foo)

	anotherfoo = os.getenv('PATH')
then in anotherfoo the path is *NOT* correctly set, but after
a spawn the path *is* correctly set.

Was that cryptic? 

Once more: It seems that the os.setenv function does not have an
effect on the running process on Windows, only on child process?


PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

More information about the luatex mailing list