From 79ec6ed03d2a176b1f3e47aaff29daa5e5e1f369 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Fri, 16 Sep 2022 01:06:46 +0200 Subject: [PATCH] Shell: Fix 'Command:' output for built-in 'time' command --- Userland/Shell/Builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index caf9c8034b9..1186efcd089 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -919,7 +919,7 @@ int Shell::builtin_time(int argc, char const** argv) warnln("Timing report: {} ms", iteration_times.sum()); warnln("=============="); - warnln("Command: {}", String::join(' ', command.argv)); + warnln("Command: {}", String::join(' ', Span(argv, argc))); warnln("Average time: {:.2} ms (median: {}, stddev: {:.2}, min: {}, max:{})", iteration_times.average(), iteration_times.median(), iteration_times.standard_deviation(),