<div dir="ltr"><div dir="ltr">Hi Luigi,</div><div dir="ltr"><br></div><div>Thanks for fixing those issues with \input!</div><div dir="ltr"><br></div><div>I think I found another one, related to this:</div><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
    Runaway text?<br>
    ! Forbidden control sequence found while scanning text of \csname\endcsname.<br>
    <inserted text><br>
    }<br>
    <to be read again><br>
    \boom<br>
    l.3 \input{\boom<br>
<br>
    ?</blockquote></div></div></blockquote><div><br></div><div>but with \unexpanded:</div><div><br>    \directlua{\unexpanded{%<br>      out = io.open('testfile.tex','w')<br>      out:write('hello')<br>      io.close(out)}}<br>    \edef\x{\unexpanded\expandafter{\input{testfile.tex}}}<br></div><div><br></div><div>also prints:</div><div><br>    Runaway text?<br>    hello <br>    ! File ended while scanning text of \csname\endcsname.<br>    <inserted text> <br>    }<br>    l.6 ...{\unexpanded\expandafter{\input{testfile.tex}<br>                                                      }}<br>    ?<br></div><div><br></div><div>with \csname\endcsname rather than \unexpanded.</div><div><br></div><div>Thanks again.</div><div><br></div><div>Best</div><div><br></div><div>---<br>Phelype</div></div></div>