From 909cbb0e4098c295a3962f24237d16beca1f7c13 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 7 Feb 2026 20:34:49 +0100 Subject: [PATCH] libutil: improve runProgram2 log message include argv0 if needed and program path at all times. Change-Id: Icc5e28e32334e22f67fd58bd88784d4ddd5e583a --- lix/libutil/processes.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lix/libutil/processes.cc b/lix/libutil/processes.cc index f66b98997..277b82fb6 100644 --- a/lix/libutil/processes.cc +++ b/lix/libutil/processes.cc @@ -354,7 +354,15 @@ RunningProgram runProgram2(const RunOptions & options) ProcessOptions processOptions{}; - printMsg(lvlChatty, "running command: %s", concatMapStringsSep(" ", options.args, shellEscape)); + printMsg( + lvlChatty, + "running command%s%s: %s %s%s", + Uncolored(options.searchPath ? " from PATH" : ""), + Uncolored(options.argv0 ? " with explicit argv0" : ""), + shellEscape(options.program), + options.argv0 ? shellEscape(*options.argv0) + " " : "", + concatMapStringsSep(" ", options.args, shellEscape) + ); /* Fork. */ Pid pid{startProcess(