And there is no effect on the local filesystem, even if I’m running a valid, hardcoded command like 7z a out.zip *.txt. Is this a security issue with the Steam version? I need the reason and code as well so I can check error codes and display messages to extension users.
No luck, I wasn’t able to get Aseprite compiling under Windows or my Linux Mint dual-boot. And end users would need to use v.1.3.7 anyways for the script to work. I’ll just need to wait on the next release or release a temporarily cut-down version of the extension.
Yes, I’m now able to get the return values. And with those, I was able to diagnose the problem. For anyone coming here from Google, here are some Windows gotchas:
Try adding & sleep 5 to the end of your command so you can read the output before the console closes. io.popen does not work for getting stdout.
There is a hard limit to how long commands can be. Split up your command into multiple os.execute if it is failing.
If the executable path or one of your arguments contains spaces, you must surround it in ". Additionally, if your command is executed as a child process like: