rust/library/std/src
Matthias Krüger 538dcdad31
Rollup merge of #113787 - sanchopanca:process-command-windows-docs, r=ChrisDenton
Update documentation for std::process::Command's new method

In the current documentation, it's not specified that when creating a Command, the .exe extension can be omitted for Windows executables. However, for other types of executable files like .bat or .cmd, the complete filename including the extension must be provided.

I encountered it by noticing that `Command::new("wt").spawn().unwrap()` succeeds on my machine while `Command::new("code").spawn().unwrap()` panics. Turns out VS Code's entrypoint is .cmd file.

`resolve_exe` method mentions this behaviour in [a comment](e7fda447e7/library/std/src/sys/windows/process.rs (L425)), but it makes sense to mention it at a more visible place.

I've added this clarification to the documentation, which should make it more accurate and helpful for Rust developers working on the Windows platform.
2023-07-20 07:08:42 +02:00
..
backtrace
collections avoid ambiguous word 2023-07-12 20:10:52 +02:00
env
error
f32
f64
ffi Replace version placeholder to 1.72 2023-07-12 21:24:05 -04:00
fs Update tvOS support elsewhere in the stdlib 2023-06-21 14:59:40 -07:00
io Auto merge of #103754 - SUPERCILEX:filled-mut, r=m-ou-se 2023-07-11 19:07:11 +00:00
net Rollup merge of #112464 - eval-exec:exec/fix-connect_timeout-overflow, r=ChrisDenton 2023-06-20 14:23:39 +02:00
num
os support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00
panic
path
prelude correct std::prelude comment 2023-04-27 15:56:57 +02:00
process Workaround for old android not having echo 2023-07-05 09:54:16 +01:00
sync support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00
sys support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00
sys_common wip: Support Apple tvOS in libstd 2023-06-21 14:59:37 -07:00
thread Update tvOS support elsewhere in the stdlib 2023-06-21 14:59:40 -07:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs Revert "Remove #[alloc_error_handler] from the compiler and library" 2023-04-25 00:08:35 +02:00
ascii.rs Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
backtrace.rs
env.rs Rollup merge of #109894 - fleetingbytes:109893-var_os-never-returns-an-error, r=cuviper 2023-04-11 20:28:46 -07:00
error.rs
f32.rs move pal cfgs in f32 and f64 to sys 2023-07-09 17:32:26 -07:00
f64.rs move pal cfgs in f32 and f64 to sys 2023-07-09 17:32:26 -07:00
fs.rs Auto merge of #94748 - tbu-:pr_file_arc, r=Amanieu 2023-07-10 13:26:42 +00:00
keyword_docs.rs enable rust_2018_idioms for doctests 2023-05-07 00:12:29 +03:00
lib.rs On nightly, dump ICE backtraces to disk 2023-07-19 14:10:07 +00:00
macros.rs Fix typo in eprintln docs 2023-06-21 01:08:10 +01:00
num.rs
panic.rs Shorten lifetime of even more panic temporaries 2023-05-15 03:47:37 -07:00
panicking.rs On nightly, dump ICE backtraces to disk 2023-07-19 14:10:07 +00:00
path.rs Mark internal functions and traits unsafe 2023-05-15 14:31:00 -04:00
primitive_docs.rs Extend unused_must_use to cover block exprs 2023-06-15 17:59:13 +08:00
process.rs Update documentation for std::process::Command's new method 2023-07-18 11:32:04 +02:00
rt.rs
time.rs update wasi_clock_time_api ref. 2023-04-29 19:04:16 +08:00