[luatex] Bug in io.popen
Deepak Jois
deepak.jois at gmail.com
Fri Oct 21 18:10:14 CEST 2016
On Fri, Oct 21, 2016 at 9:02 PM, luigi scarso <luigi.scarso 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
>>
> 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
More information about the luatex
mailing list