From 9082c79b34933d68767f84c557e2cd0898359bf3 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 1 Sep 2022 05:24:05 -0700 Subject: [PATCH] pty: actually return the shell we found this was masked for me because my dotfiles have a special case to run zsh when launching sh as a login shell. doh! refs: https://github.com/wez/wezterm/issues/2469 --- pty/src/cmdbuilder.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pty/src/cmdbuilder.rs b/pty/src/cmdbuilder.rs index c735d5060..edf4ac472 100644 --- a/pty/src/cmdbuilder.rs +++ b/pty/src/cmdbuilder.rs @@ -477,6 +477,8 @@ impl CommandBuilder { "passwd database shell={shell:?} which is \ not executable ({err:#}), fallback to /bin/sh" ); + } else { + return Ok(shell) } } Ok("/bin/sh".into())