Skip to content

Document the PATH that Command searchs #137286

Open
@ChrisDenton

Description

@ChrisDenton

Location

std::process::Command

Summary

On all platforms, we search the child's PATH rather than the PATH of the spawning process. This is enforced by this standard library test: https://github.com/rust-lang/rust/blob/ed49386d3aa3a445a9889707fd405df01723eced/library/std/tests/process_spawning.rs

Separately we should also document platform specific behaviour, even if it's subject to change.

This might require libs-api sign off but I feel this should be documented because it's somewhat surprising.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-processArea: `std::process` and `std::env`E-help-wantedCall for participation: Help is requested to fix this issue.T-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