Pass redirects into call (#4694)

* Pass redirects into call

* Oops, format
This commit is contained in:
JT 2022-03-02 07:52:24 -05:00 committed by GitHub
parent 0da9213de6
commit 88d7b50e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,14 @@ fn eval_call(
}
}
let result = eval_block(engine_state, &mut callee_stack, block, input, false, true);
let result = eval_block(
engine_state,
&mut callee_stack,
block,
input,
call.redirect_stdout,
call.redirect_stderr,
);
if block.redirect_env {
let caller_env_vars = caller_stack.get_env_var_names(engine_state);