[luatex] Bugs in \input{...}

Phelype Oleinik phe.h.o1 at gmail.com
Tue Mar 24 22:07:26 CET 2020


Hi Luigi,

Thanks for fixing those issues with \input!

I think I found another one, related to this:

    Runaway text?
>>     ! Forbidden control sequence found while scanning text of
>> \csname\endcsname.
>>     <inserted text>
>>     }
>>     <to be read again>
>>     \boom
>>     l.3 \input{\boom
>>
>>     ?
>
>
but with \unexpanded:

    \directlua{\unexpanded{%
      out = io.open('testfile.tex','w')
      out:write('hello')
      io.close(out)}}
    \edef\x{\unexpanded\expandafter{\input{testfile.tex}}}

also prints:

    Runaway text?
    hello
    ! File ended while scanning text of \csname\endcsname.
    <inserted text>
    }
    l.6 ...{\unexpanded\expandafter{\input{testfile.tex}
                                                      }}
    ?

with \csname\endcsname rather than \unexpanded.

Thanks again.

Best

---
Phelype
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20200324/8bf9b248/attachment.html>


More information about the luatex mailing list.