Posted 16 August 2015 - 05:35 AM
I've been trying to NOT do this:
But it seems that programs launched with os.run, and {} as the environment, won't have access to the
shell API, maybe even other important APIs.
I tried passing _G instead. Don't do that. It doesn't help. In fact its worse.
Multishell has the same problem:
Is there a 'correct' way to do it? Should I be passing 'getfenv()'?
Should I just use 'shell.run' instead of 'os.run' / multishell ?
shell.run("program","arg1")
Doing this instead:
os.run( {} , "program" , "arg1")
But it seems that programs launched with os.run, and {} as the environment, won't have access to the
shell API, maybe even other important APIs.
I tried passing _G instead. Don't do that. It doesn't help. In fact its worse.
Multishell has the same problem:
multishell.launch( {} , "program" , "arg1" )
program won't have access to shell API, maybe otherIs there a 'correct' way to do it? Should I be passing 'getfenv()'?
Should I just use 'shell.run' instead of 'os.run' / multishell ?