From 531191ab52447a19edb100c61fc6ed6a3bec22e3 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sat, 30 May 2026 19:53:15 +0100 Subject: [PATCH] core: update pipeline api usage --- bshell.core/cmdlets/foreach-object.c | 2 +- bshell.core/cmdlets/get-verb.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bshell.core/cmdlets/foreach-object.c b/bshell.core/cmdlets/foreach-object.c index 39bd5ae..0a126b4 100644 --- a/bshell.core/cmdlets/foreach-object.c +++ b/bshell.core/cmdlets/foreach-object.c @@ -50,7 +50,7 @@ static enum bshell_status process_record( bshell_runtime_push_scope(rt, p->f_block); bshell_variable *item = bshell_runtime_define_var(rt, "_"); - bshell_variable_set_value(item, &in); + bshell_variable_set_value(item, in); fx_value out = bshell_runtime_eval(rt); bshell_runtime_pop_scope(rt); fx_value_unset(&in); diff --git a/bshell.core/cmdlets/get-verb.c b/bshell.core/cmdlets/get-verb.c index 57d90f1..d744df9 100644 --- a/bshell.core/cmdlets/get-verb.c +++ b/bshell.core/cmdlets/get-verb.c @@ -56,11 +56,7 @@ static enum bshell_status process_record( continue; } - bshell_verb_ref(verb); - bshell_pipeline_write_value( - pipeline, - fx_value_ref_copy_return(v), - false); + bshell_pipeline_write_value(pipeline, *v, false); break; } while (1);