From 5158adab10b6dcfea9370782043392f80fa0643c Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Mon, 31 Aug 2026 23:22:40 +0200 Subject: fix(windows): launch powershell agent shims with arguments (#3455) --- src/platform/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/platform/mod.rs') 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'=') -- cgit v1.2.3