diff --git a/crates/nu-command/src/filters/reduce.rs b/crates/nu-command/src/filters/reduce.rs index 4fca1df3a4..ffd2e850d9 100644 --- a/crates/nu-command/src/filters/reduce.rs +++ b/crates/nu-command/src/filters/reduce.rs @@ -120,7 +120,8 @@ impl Command for Reduce { engine_state.signals().check(head)?; acc = closure .add_arg(value) - .run_with_value(acc)? + .add_arg(acc.clone()) + .run_with_input(PipelineData::Value(acc, None))? .into_value(head)?; }