[tex-live] Location of Lua files

Ulrike Fischer news3 at nililand.de
Mon Jul 11 10:51:09 CEST 2011


Am Sun, 10 Jul 2011 22:48:38 GMT schrieb Karl Berry:

>     it would be good to know what kpathsea implements; 
> 
> What kpse implements (in kpathsea/tex-file.c) is searching along the
> path/envvar named LUAINPUTS in the standard way, with numerous suffixes:
> .lua  .luatex  .luc  .luctex  .texlua  .texluc  .tlu
> 
> And the default path for LUAINPUTS (in texmf.cnf) is:
> LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS

> With that path, it is immaterial whether a .lua is under tex/ or scripts/.
 
>     > lua-files connected with an exe
 
> I have no desire to think about such a distinction (or, in general,
> deeply look at packages when I install/update them), when it makes no
> practical difference.  

I would say it makes a practical difference. mkluatexfontdb.exe is
an executable which writes files (the name cache) in another texmf
tree so its writing rights are not restricted to subfolders. So I
care much more about how mkluatexfontdb.exe finds its associated
script than how e.g. fontspec finds its lua-file. I would find the
thought that mkluatexfontdb.exe (and similar executables) can use
whatever (.lua) script it finds in a large range of pathes and
environment variables rather troubling. The restriction imposed by
miktex to the search path of mkluatexfontdb.exe in its scripts.ini
don't mean completly security but at least gives a bit protection. 


-- 
Ulrike Fischer 



More information about the tex-live mailing list