Browse Source

Fix Windows CMD `cd` failure on paths with spaces (`use-on-cd`) (#553)

remotes/origin/add-with-shims
Gal Schlezinger 4 years ago committed by GitHub
parent
commit
500c9f5711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/shell/windows_cmd/mod.rs

2
src/shell/windows_cmd/mod.rs

@ -25,7 +25,7 @@ impl Shell for WindowsCmd { @@ -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")
)
}

Loading…
Cancel
Save