mirror of
https://github.com/nushell/nushell
synced 2025-01-13 05:38:57 +00:00
Revert cd.rs, it does not need to be modified to use PWD-per-drive, as most file system commands.
This commit is contained in:
parent
37469f015c
commit
c3b6e9f709
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
use nu_engine::command_prelude::*;
|
use nu_engine::command_prelude::*;
|
||||||
use nu_protocol::engine::expand_path_with;
|
|
||||||
use nu_utils::filesystem::{have_permission, PermissionResult};
|
use nu_utils::filesystem::{have_permission, PermissionResult};
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
@ -89,7 +88,7 @@ impl Command for Cd {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let path =
|
let path =
|
||||||
expand_path_with(stack, engine_state, path_no_whitespace, &cwd, true);
|
nu_path::expand_path_with(path_no_whitespace, &cwd, true);
|
||||||
if !path.exists() {
|
if !path.exists() {
|
||||||
return Err(ShellError::DirectoryNotFound {
|
return Err(ShellError::DirectoryNotFound {
|
||||||
dir: path_no_whitespace.to_string(),
|
dir: path_no_whitespace.to_string(),
|
||||||
|
|
Loading…
Reference in a new issue