From 7b932969d69dc99b49f1a7a7ec7e5d87024bcfe2 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jan 2022 14:31:47 -0500 Subject: there's no reason to eval at all in the main shell --- src/shell/history/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shell/history/mod.rs') 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)) => { -- cgit v1.2.3-54-g00ecf