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

texlua os.spawn does not wait #1287

Closed
edocevoli opened this issue Feb 14, 2023 Discussed in #1286 · 1 comment
Closed

texlua os.spawn does not wait #1287

edocevoli opened this issue Feb 14, 2023 Discussed in #1286 · 1 comment
Milestone

Comments

@edocevoli
Copy link
Member

Discussed in #1286

Originally posted by siepodrop February 14, 2023
With miktex texlua, os.spawn appears not to wait until the invocation is finished. It does wait in TL texlua. MWE:

kpse.set_program_name('texlua')

print('execute')
cmd = 'pdflatex sample2e'
print(cmd)
rbool, rstring, rnum = os.execute(cmd)
print('|', rbool, '|', rstring, '|', rnum, '|')

cmd = 'pdflatex sample2e'
print('spawn with string argument', cmd)
rbool, rstring, rnum = os.spawn(cmd)
print('|', rbool, '|', rstring, '|', rnum, '|')

cmd = {'pdflatex', 'sample2e'}
print('spawn with table argument', cmd)
rbool, rstring, rnum = os.spawn(cmd)
print('|', rbool, '|', rstring, '|', rnum, '|')
```</div>
@edocevoli edocevoli added this to the 23.1 milestone Apr 7, 2023
edocevoli added a commit that referenced this issue Apr 10, 2023
@edocevoli
Copy link
Member Author

This has been fixed

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

1 participant