diff --git a/src/exec.rs b/src/exec.rs index 1161967a4..07f9a5689 100644 --- a/src/exec.rs +++ b/src/exec.rs @@ -1150,8 +1150,11 @@ fn get_performer_for_builtin(p: &Process, j: &Job, io_chain: &IoChain) -> Box = - p.argv().iter().map(|s| truncate_at_nul(s.as_ref())).collect(); + let mut shim_argv: Vec<&wstr> = p + .argv() + .iter() + .map(|s| truncate_at_nul(s.as_ref())) + .collect(); builtin_run(parser, &mut shim_argv, &mut streams) }, )