Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua io.popen() doesn't work with :write and :close #1352

Closed
1 task done
josephwright opened this issue Jul 17, 2023 · 1 comment
Closed
1 task done

Lua io.popen() doesn't work with :write and :close #1352

josephwright opened this issue Jul 17, 2023 · 1 comment
Milestone

Comments

@josephwright
Copy link

josephwright commented Jul 17, 2023

In the MiKTeX, running texlua with input

io.popen("echo","w"):write("y"):close()

yields the error

 attempt to index a nil value

In TeX Live, the same construct is fine. Removing either the 'payload' of write (using an empty string) or removing the close resolves the error, but of course then isn't what is wanted.


Initially reported against l3build: latex3/l3build#303

@edocevoli edocevoli added this to the next milestone Jul 19, 2023
edocevoli added a commit that referenced this issue Sep 15, 2023
@edocevoli
Copy link
Member

Thank you, this has been fixed. Please get the latest updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants