util: Fix invalid powershell redirection syntax used in uni shell env capture (#43390)

Closes  https://github.com/zed-industries/zed/issues/42869

Release Notes:

- Fixed shell env sourcing not working with powershell on unix systems
This commit is contained in:
Lukas Wirth
2025-11-24 11:11:45 +00:00
committed by GitHub
parent 2f46e6a43c
commit f7772af197
+1
View File
@@ -55,6 +55,7 @@ async fn capture_unix(
// xonsh doesn't support redirecting to stdin, and control sequences are printed to
// stdout on startup
ShellKind::Xonsh => (FD_STDERR, "o>e".to_string()),
ShellKind::PowerShell => (FD_STDIN, format!(">{}", FD_STDIN)),
_ => (FD_STDIN, format!(">&{}", FD_STDIN)), // `>&0`
};