diff options
Diffstat (limited to 'src/platform/mod.rs')
| -rw-r--r-- | src/platform/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs index a63b7565..6323212a 100644 --- a/src/platform/mod.rs +++ b/src/platform/mod.rs @@ -280,6 +280,7 @@ pub(crate) fn interactive_unix_shell_command( pub(crate) fn quote_powershell_arg(value: &str) -> String { if !value.is_empty() + && !value.starts_with('-') && value.bytes().all(|byte| { byte.is_ascii_alphanumeric() || matches!(byte, b'_' | b'-' | b'.' | b'/' | b':' | b'+' | b'=') |
