aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-09-28 20:01:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-09-28 20:01:20 +0300
commite086480b76d995beb23b9b91bda335702f7f0d2a (patch)
treebb7063126dd69f9571be346750223e4ec2e13dcd
parent1c60c97b6b05cbee7e106fae6d8582382cbe4b7c (diff)
Don't print true and false script builtins at verbosity level 2
-rw-r--r--libbuild2/script/run.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/script/run.cxx b/libbuild2/script/run.cxx
index 51a1f92..81abdab 100644
--- a/libbuild2/script/run.cxx
+++ b/libbuild2/script/run.cxx
@@ -1944,7 +1944,10 @@ namespace build2
{
// Execute the builtin.
//
- if (verb >= 2)
+ // Don't print the true and false builtins, since they are normally
+ // used for the commands execution flow control.
+ //
+ if (verb >= 2 && program != "true" && program != "false")
print_process (process_args ());
// Some of the script builtins (cp, mkdir, etc) extend libbutl