Skip to main content

eval_const_subexpression

Function eval_const_subexpression 

Source
pub fn eval_const_subexpression(
    working_set: &StateWorkingSet<'_>,
    block: &Block,
    input: PipelineData,
    span: Span,
) -> Result<PipelineData, ShellError>
Expand description

The output of block’s last pipeline, with input going to the first.

Between pipelines this does what a ; does when the block runs: a stream is drained, raising an error it holds, a value is dropped, and the next pipeline starts with no input.