Document the PATH
that Command
searchs
#137286
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
A-process
Area: `std::process` and `std::env`
E-help-wanted
Call for participation: Help is requested to fix this issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Location
std::process::Command
Summary
On all platforms, we search the child's
PATH
rather than thePATH
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.rsSeparately 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.
The text was updated successfully, but these errors were encountered: