Hacker News new | ask | show | jobs
by throwaway2037 513 days ago
It is interesting that they do not allow ability to change env and working dir via security policy or a command line arg (--allow-setenv, etc.).
1 comments

That would be so much wasted engineering effort. The actual solution is simple: read what you need from env, and pass it as parameters to the functions you want to. The values of what you have read can be changed... and if you really, really want start a child process with a modified env.