summaryrefslogtreecommitdiffstats
path: root/src/runner/builtins/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-17 00:35:49 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-17 01:23:08 -0500
commit51b30ef54d2953a89edda966f10f150b7ef81ee5 (patch)
tree253bfd8095f15497ddb2e8104f46173d5b1092db /src/runner/builtins/mod.rs
parent296fa4ce873c158b8c87d21db3e566c8ae365504 (diff)
downloadnbsh-51b30ef54d2953a89edda966f10f150b7ef81ee5.tar.gz
nbsh-51b30ef54d2953a89edda966f10f150b7ef81ee5.zip
fix cd history
Diffstat (limited to 'src/runner/builtins/mod.rs')
-rw-r--r--src/runner/builtins/mod.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/runner/builtins/mod.rs b/src/runner/builtins/mod.rs
index f181b45..19d250a 100644
--- a/src/runner/builtins/mod.rs
+++ b/src/runner/builtins/mod.rs
@@ -79,17 +79,6 @@ fn cd(
bail!(cfg, exe, "could not find home directory");
}
};
- let prev = match std::env::current_dir() {
- Ok(path) => path,
- Err(e) => {
- bail!(
- cfg,
- exe,
- "could not find current directory: {}",
- crate::format::io_error(&e)
- );
- }
- };
if let Err(e) = std::env::set_current_dir(&dir) {
bail!(
cfg,
@@ -99,8 +88,6 @@ fn cd(
dir.display()
);
}
- // TODO
- // env.set_prev_pwd(prev);
async_std::process::ExitStatus::from_raw(0)
}