From d5a48901425001d587919df7eee09a8dc3589bd8 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Sun, 5 Oct 2025 20:29:58 +0200 Subject: [PATCH] remote: Keep full shell path on wsl (#39555) Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/remote/src/transport/wsl.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/remote/src/transport/wsl.rs b/crates/remote/src/transport/wsl.rs index eed7a19d923772167da08a2e1a4ec2a8448f170e..6ae57111f1bf88b80f11d9a974e45cb89b2dde35 100644 --- a/crates/remote/src/transport/wsl.rs +++ b/crates/remote/src/transport/wsl.rs @@ -98,11 +98,6 @@ impl WslRemoteConnection { .run_wsl_command("sh", &["-c", "echo $SHELL"]) .await .ok() - .and_then(|shell_path| { - Path::new(shell_path.trim()) - .file_name() - .map(|it| it.to_str().unwrap().to_owned()) - }) .unwrap_or_else(|| "bash".to_string())) }