Skip to content

std::process::Command::env_clear is unusable on Windows #114737

Open
@meskill

Description

@meskill

Followed from the issue that was closed without an actual solution.

Problem

Windows requires some system envs in order to work and be able to run most of the programs and services. Without them they will fail like mentioned here

Possible solution

As described in comments to previous issue rust std could provide that system required envs in order to make env_clear more usable as it has done in libuv and go

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processArea: `std::process` and `std::env`O-windowsOperating system: WindowsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions