diff options
author | Eric Andersen | 2003-11-07 21:39:14 +0000 |
---|---|---|
committer | Eric Andersen | 2003-11-07 21:39:14 +0000 |
commit | 2849209db20289f5486a602b2c42630ee6b5ae7d (patch) | |
tree | b4db660f16a7136e770b77de254eca710c7d0bc5 /miscutils | |
parent | 28d4e16cd7c08791be2eba6be78a5d0ad01397ac (diff) | |
download | busybox-2849209db20289f5486a602b2c42630ee6b5ae7d.zip busybox-2849209db20289f5486a602b2c42630ee6b5ae7d.tar.gz |
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.
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/time.c b/miscutils/time.c index c30ef43..7aaa12e 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)); |