This should use shlex::quote like case output::VVERBOSE above in this function.
memio::dynamic can be used to write it into a string, or alternatively, store
the args slice in the task and quote only when reporting the error.
This should be moved to free_task since there are different codepaths where a
task is freed, which would leak args.
cleanup_task(ctx, t)?;
free_task(t);
io::close(j.lock)?;
diff --git a/cmd/hare/build/types.ha b/cmd/hare/build/types.ha
index 43470df5..433d0437 100644
--- a/cmd/hare/build/types.ha+++ b/cmd/hare/build/types.ha
@@ -51,6 +51,7 @@ export type job = struct {
// fd to be closed once the job has finished, in order to release the
// [[io::lock]] on it
lock: io::file,
+ args: str,};
export type output = enum {
--
2.41.0