aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbuild2/diagnostics.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/diagnostics.cxx b/libbuild2/diagnostics.cxx
index fdd276e..e22ef44 100644
--- a/libbuild2/diagnostics.cxx
+++ b/libbuild2/diagnostics.cxx
@@ -559,7 +559,10 @@ namespace build2
const process_env& pe, const char* const* args, size_t n)
{
if (pe.env ())
- dr << pe << ' ';
+ {
+ to_stream (dr.os, pe, process_env_format::cwd | process_env_format::vars);
+ dr << ' ';
+ }
dr << butl::process_args {args, n};
}