diff options
Diffstat (limited to 'src/shell/history/mod.rs')
-rw-r--r-- | src/shell/history/mod.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/shell/history/mod.rs b/src/shell/history/mod.rs index 55f2d8a..472269f 100644 --- a/src/shell/history/mod.rs +++ b/src/shell/history/mod.rs @@ -299,7 +299,15 @@ fn run_commands( } }; - for pipeline in ast.pipelines() { + for command in ast.commands() { + let pipeline = + if let crate::parse::ast::Command::Pipeline(pipeline) = + command + { + pipeline + } else { + todo!() + }; match run_pipeline( pipeline.input_string(), &pty, |