Shopify/go-lua

panic: runtime error: hello.lua:22: 'popen' not supported

kissthink opened this issue · 2 comments

why not support io.popen ?

Hi @kissthink,

I don't recall a GO function to mimic popen(). But it's sure if it has, it can be easily added to standard io package.

Your golang program itself, it can extend io at runtime.

But the big issue is the compatibility! Such feature may not be available into others OS.

It seems to me that with os/exec it shouldn't be too difficult to implement. I might need it for one of my projects. In case I do get down to implementing something, I'll post an update here.