From f856a3ca896d3a15ba4eadb45ebb46146056150e Mon Sep 17 00:00:00 2001 From: Maokaman1 Date: Fri, 28 Nov 2025 10:18:19 +0300 Subject: [PATCH] askpass: Use double quotes for script name in helper command (#43689) Replace single quotes with double quotes when referencing the askpass script name in the helper command. The Windows command processor (cmd.exe) requires double quotes for proper string handling, as single quotes are treated as literal characters. Error I get when trying to open remote project: image ``` Zed Nightly 0.216.0 c2281779af56bd52c829ccd31aae4eb82b682ebc 0.216.0+nightly.1965.c2281779af56bd52c829ccd31aae4eb82b682ebc ``` Release Notes: - N/A --- crates/askpass/src/askpass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/askpass/src/askpass.rs b/crates/askpass/src/askpass.rs index 8e911f1654572d2bcd9f906c82449e1524d0ce9d..ab4474aa62faedbfac0bc680a52648fa824c83a1 100644 --- a/crates/askpass/src/askpass.rs +++ b/crates/askpass/src/askpass.rs @@ -257,7 +257,7 @@ impl PasswordProxy { // todo(shell): There might be no powershell on the system #[cfg(target_os = "windows")] let askpass_helper = format!( - "powershell.exe -ExecutionPolicy Bypass -File '{}'", + "powershell.exe -ExecutionPolicy Bypass -File \"{}\"", askpass_script_path.display() );