From b8a7102702bb2539ade9e3714ced3260e77047de Mon Sep 17 00:00:00 2001 From: andersen Date: Fri, 7 Nov 2003 21:39:14 +0000 Subject: Patch from Steven Scholz to send the output from 'time' to stderr, rather than stdout, so that things like ~ # time bunzip2 -c /tmp/test.bz2 > /dev/null real 0m 29.44s user 0m 29.30s sys 0m 0.12s operate as expected. git-svn-id: svn://busybox.net/trunk/busybox@7849 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- miscutils/time.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils') diff --git a/miscutils/time.c b/miscutils/time.c index c30ef4311..7aaa12e2a 100644 --- a/miscutils/time.c +++ b/miscutils/time.c @@ -489,8 +489,8 @@ extern int time_main (int argc, char **argv) bb_show_usage(); run_command (argv, &res); - summarize (stdout, output_format, argv, &res); - fflush (stdout); + summarize (stderr, output_format, argv, &res); + fflush (stderr); if (WIFSTOPPED (res.waitstatus)) exit (WSTOPSIG (res.waitstatus)); -- cgit v1.2.3-55-g6feb