Fixed command substitutions not expanding when used as a command name

This commit is contained in:
2026-02-23 23:32:12 -05:00
parent 06a55734c9
commit fa49e2ef70
4 changed files with 201 additions and 185 deletions

View File

@@ -155,7 +155,9 @@ pub fn exec_input(input: String, io_stack: Option<IoStack>, interactive: bool) -
return Ok(());
}
let mut dispatcher = Dispatcher::new(parser.extract_nodes(), interactive);
let nodes = parser.extract_nodes();
let mut dispatcher = Dispatcher::new(nodes, interactive);
if let Some(mut stack) = io_stack {
dispatcher.io_stack.extend(stack.drain(..));
}