-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to set environment variables without clearing environment #82
Comments
How about |
@tomjaguarpaw That sounds like a decent workaround, but it's challenging to compose without fetching the environment multiple times. I'd really like something closer to the Rust
This supports the standard case nicely (inheriting the parent environment but adding or modifying a few variables), composes well ( Maybe we could have:
And we could add a note on |
How about just For example
Is having separately named functions for each of these things important to you? If so then perhaps as an alternative we could have
and then use
|
With
setEnvInherit
, a process can be executed with the environment variables inherited from the parent:setEnv
can be used to set environment variables, but doing so prevents the subprocess from inheriting any environment variables from its parent:I'd like to (e.g.) run a program with environment variables inherited but with some changes.
The text was updated successfully, but these errors were encountered: