Skip to content

Instantly share code, notes, and snippets.

/osexecute.lua
Created Mar 11, 2013

Embed
What would you like to do?
Lua: Return values of os.execute()
x, y = os.execute("kpsewhich article.cls")
print(x, y)
@zr-tex8r

This comment has been minimized.

Copy link

commented Mar 11, 2013

Lua 5.1 --> "0 nil"
Lua 5.2 --> "true exit"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.