From 8a9fc6a7211206cb6491a3662026f047ee9a67ea Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Thu, 7 May 2020 05:51:03 +1200 Subject: [PATCH] Fix changing to a new Windows drive (#1721) * Fix changing to a new Windows drive * Update cli.rs --- crates/nu-cli/src/cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index c295d378ed..2b69e80979 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -812,7 +812,8 @@ async fn process_line( ctx.shell_manager.set_path(val.to_string()); return LineResult::Success(line.to_string()); } else { - ctx.shell_manager.set_path(name.to_string()); + ctx.shell_manager + .set_path(format!("{}\\", name.to_string())); return LineResult::Success(line.to_string()); } } else {