summaryrefslogtreecommitdiffstats
path: root/src/shell/history/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-08 14:31:47 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-08 14:31:47 -0500
commit7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2 (patch)
treebb2b69901986a8865d790d76bd6e49a3ad79ccb3 /src/shell/history/mod.rs
parent83de263441105e669acf79498788e1b66c6e3945 (diff)
downloadnbsh-7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2.tar.gz
nbsh-7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2.zip
there's no reason to eval at all in the main shell
Diffstat (limited to 'src/shell/history/mod.rs')
-rw-r--r--src/shell/history/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs
index 5b7f5f0..9e1d1fd 100644
--- a/src/shell/history/mod.rs
+++ b/src/shell/history/mod.rs
@@ -299,8 +299,7 @@ fn run_commands(
}
};
- let commands = ast.eval(&env);
- for pipeline in commands.pipelines() {
+ for pipeline in ast.pipelines() {
env.set_pipeline(pipeline.input_string().to_string());
match run_pipeline(&pty, &mut env, event_w.clone()).await {
Ok((pipeline_status, done)) => {