From 500c9f57117fb911ad41501dabfdf64f20d7468a Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Wed, 13 Oct 2021 15:41:11 +0300 Subject: [PATCH] Fix Windows CMD `cd` failure on paths with spaces (`use-on-cd`) (#553) --- src/shell/windows_cmd/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/windows_cmd/mod.rs b/src/shell/windows_cmd/mod.rs index af60d71..9377d58 100644 --- a/src/shell/windows_cmd/mod.rs +++ b/src/shell/windows_cmd/mod.rs @@ -25,7 +25,7 @@ impl Shell for WindowsCmd { let path = config.base_dir_with_default().join("cd.cmd"); create_cd_file_at(&path).expect("Can't create cd.cmd file for use-on-cd"); format!( - "doskey cd={} $1", + "doskey cd={} $*", path.to_str().expect("Can't read path to cd.cmd") ) }