Open
Description
Feature gate: #![feature(windows_process_extensions_force_quotes)]
This is a tracking issue for expose force_quotes in CommandExt on Win32
Forces all arguments to be wrapped in quote ("
) characters.
This is useful for passing arguments to MSYS2/Cygwin based
executables: these programs will expand unquoted arguments containing
wildcard characters (?
and *
) by searching for any file paths
matching the wildcard pattern.
Adding quotes has no effect when passing arguments to programs
that use msvcrt. This includes programs built with both
MinGW and MSVC.
Public API
// std::process
pub trait CommandExt: Sealed {
#[unstable(feature = "windows_process_extensions_force_quotes", issue = "82227")]
fn force_quotes(&mut self, enabled: bool) -> &mut process::Command;
}
Steps / History
- Implementation: Expose force_quotes on Windows. #77728
- Final commenting period (FCP)
- Stabilization PR
Unresolved Questions
- None yet.