From 5eb3b122a656be74e7a6980d71338524a560dfed Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 6 Apr 2022 18:49:48 -0700 Subject: [PATCH] really fix win32 build :-p I'm not actually on win32 so this is speculative! --- pty/src/cmdbuilder.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pty/src/cmdbuilder.rs b/pty/src/cmdbuilder.rs index 837d325f5..845ba73ef 100644 --- a/pty/src/cmdbuilder.rs +++ b/pty/src/cmdbuilder.rs @@ -439,11 +439,11 @@ impl CommandBuilder { } pub fn get_shell(&self) -> anyhow::Result { - Ok(self + let exe: OsString = self .get_env("ComSpec") .unwrap_or(OsStr::new("cmd.exe")) - .into() - .into_string()?) + .into(); + Ok(exe.into_string()?) } pub(crate) fn cmdline(&self) -> anyhow::Result<(Vec, Vec)> {