rust/library
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
..
alloc Auto merge of #89132 - Cyborus04:rc_allocator_support, r=Amanieu 2023-07-17 21:51:46 +00:00
backtrace@e1c49fbd61 Update std to backtrace 0.3.68 2023-07-02 17:02:45 -07:00
core Rollup merge of #113762 - alexpovel:master, r=Nilstrieb 2023-07-17 00:14:07 +02:00
panic_abort
panic_unwind
portable-simd Sync portable-simd to 2023 July 07 2023-07-07 04:07:00 -07:00
proc_macro
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #113787 - sanchopanca:process-command-windows-docs, r=ChrisDenton 2023-07-20 07:08:42 +02:00
stdarch@d77878b729
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Auto merge of #111992 - ferrocene:pa-panic-abort-tests-bench, r=m-ou-se 2023-07-01 07:07:50 +00:00
unwind support for mips32r6 as a target_arch value 2023-07-18 18:58:18 +08:00