Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Jan 17, 2025
1 parent 0ef168b commit cd7b1fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elements/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ pub fn eat_inner_script(feeder: &mut Feeder, core: &mut ShellCore, left: &str, r
}
feeder.nest.push( (left.to_string(), right.iter().map(|e| e.to_string()).collect()) );
feeder.consume(left.len());
*ans = Script::parse(feeder, core, permit_empty)?;
let result_script = Script::parse(feeder, core, permit_empty);
feeder.nest.pop();
*ans = result_script?;
Ok(ans.is_some())
}

Expand Down

0 comments on commit cd7b1fc

Please sign in to comment.