[luatex] Bug in io.popen

Deepak Jois deepak.jois at gmail.com
Fri Oct 21 17:27:58 CEST 2016


On Fri, Oct 21, 2016 at 8:39 PM, Deepak Jois <deepak.jois at gmail.com> wrote:
>
> However, why does this not work?
>
> $ cat popen.lua
> texconfig.kpse_init = false
> texconfig.shell_escape = 't'
> io.popen("ls"):read("*l")
>
> $ ~/.ufy/luatex --lua=popen.lua  "\bye"
> popen.lua:3: attempt to index a nil value

More investigation reveals that if I do set these texconfig values,
the io.popen call does work a little bit later on, in my TeX document.
So looks like it does not work only in the Lua initialization script.


More information about the luatex mailing list