Skip to content

Commit db93677

Browse files
committed
Document that Process::command will search the PATH
1 parent 2a44315 commit db93677

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libstd/process.rs

+8
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ impl Command {
253253
/// Builder methods are provided to change these defaults and
254254
/// otherwise configure the process.
255255
///
256+
/// If `program` is not an absolute path, the `PATH` will be searched in
257+
/// an OS-defined way.
258+
///
259+
/// The search path to be used may be controlled by setting the
260+
/// `PATH` environment variable on the Command,
261+
/// but this has some implementation limitations on Windows
262+
/// (see https://github.com/rust-lang/rust/issues/37519).
263+
///
256264
/// # Examples
257265
///
258266
/// Basic usage:

0 commit comments

Comments
 (0)