diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-08-31 23:22:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-31 23:22:40 +0200 |
| commit | 5158adab10b6dcfea9370782043392f80fa0643c (patch) | |
| tree | 7a2da23ddade981517d8d42283cff4fc7ede8161 /src/platform/mod.rs | |
| parent | ef2674bab8a3b38984578473c1a80589ebcbb333 (diff) | |
fix(windows): launch powershell agent shims with arguments (#3455)
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'=') |
