-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
feature request: std::process::Command.envs() #38526
Comments
This sounds reasonable to me considering |
Command::envs() adds a vector of key-value pairs to the child process environment all at once. Suggested in rust-lang#38526.
Add std::process::Command::envs() `Command::envs()` adds a vector of key-value pairs to the child process environment all at once. Suggested in #38526. This is not fully baked and frankly I'm not sure it even _works_, but I need some help finishing it up, and this is the simplest way to show you what I've got. The problems I know exist and don't know how to solve, from most to least important, are: * [ ] I don't know if the type signature of the new function is correct. * [x] The new test might not be getting run. I didn't see it go by in the output of `x.py test src/libstd --stage 1`. * [x] The tidy check says ``process.rs:402: different `since` than before`` which I don't know what it means. r? @brson
@rfcbot fcp merge |
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
I'm confused; hasn't this already been merged? |
Yes, but it's currently unstable. The FCP above starting means that the libs team believes the API is ready for stabilization. |
Oh, ok. Thanks for the explanation. |
The final comment period is now complete. |
You can add a vector of command-line arguments to a Command object with
.args()
, but there's no equivalent for environment variables. I'd like to be able to do things likeRight now I have to do instead
which breaks the builder pattern and extends the scope of the Command object.
The text was updated successfully, but these errors were encountered: