On Fri, Oct 21, 2016 at 9:02 PM, luigi scarso <[email protected]> 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
>>
> It should be explained at
> 3.1.3 Other command
> of the manual
Thanks for pointing me to that. I just re-read it and tried something
which worked, but it was still not very intuitive :).
This invocation below works and does not give me a Lua error:
$ cat popen.lua
texconfig.kpse_init = false
texconfig.shell_escape = 't'
io.popen("ls"):read("*l")
$ ~/.ufy/luatex --shell-escape --lua=popen.lua "\bye"
no format given, quitting