Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

util: Add missing quotes in shell env capturing on windows (#41902)

Lukas Wirth0ec31db39866
diff --git a/crates/util/src/shell_env.rs b/crates/util/src/shell_env.rs
index 44f6a836a91..7b51098859d 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()
),