Fix ignore to run side effects of previous command (#4510)

Co-authored-by: Genna Wingert <wingertge@gmail.com>
This commit is contained in:
Genna Wingert 2022-02-17 18:49:54 +01:00 committed by GitHub
parent fa75c93765
commit 8f5b857fcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,9 @@ impl Command for Ignore {
_engine_state: &EngineState,
_stack: &mut Stack,
call: &Call,
_input: PipelineData,
input: PipelineData,
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
input.into_value(call.head);
Ok(PipelineData::new(call.head))
}