From 0ec31db3986623bb7a522ef0aeab11621da133e7 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 4 Nov 2025 15:31:20 +0100 Subject: [PATCH] util: Add missing quotes in shell env capturing on windows (#41902) Release Notes: - Fixed shell env capturing failing if zed is installed on a path with whitespace in it --- crates/util/src/shell_env.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/util/src/shell_env.rs b/crates/util/src/shell_env.rs index 44f6a836a91b13f6b1a742832b31642f0543b995..7b51098859d6eccac637f4196d24b4433c0a9467 100644 --- a/crates/util/src/shell_env.rs +++ b/crates/util/src/shell_env.rs @@ -202,7 +202,7 @@ async fn capture_windows( .args([ "-c", &format!( - "cd '{}'; {}{} --printenv", + "cd '{}'; {}'{}' --printenv", directory.display(), shell_kind .command_prefix() @@ -231,7 +231,7 @@ async fn capture_windows( .args([ "/c", &format!( - "cd '{}'; {} --printenv", + "cd '{}'; '{}' --printenv", directory.display(), zed_path.display() ),