Fixed functions not properly forking a new process when executed in a pipeline

This commit is contained in:
2026-02-24 16:03:22 -05:00
parent b71fca22ec
commit 16f47ad225
3 changed files with 16 additions and 20 deletions

View File

@@ -59,12 +59,10 @@ fn unclosed_squote() {
fn unclosed_brc_grp() {
let input = "{ foo bar";
let tokens = LexStream::new(Arc::new(input.into()), LexFlags::empty())
.map(|tk| tk.unwrap())
.collect::<Vec<_>>();
.collect::<ShResult<Vec<_>>>();
let node = ParseStream::new(tokens).next().unwrap();
let Err(err) = node else {
panic!();
let Err(err) = tokens else {
panic!("Expected an error, got {:?}", tokens);
};
let err_fmt = format!("{err}");