diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-07 21:39:14 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-11-07 21:39:14 +0000 |
commit | b8a7102702bb2539ade9e3714ced3260e77047de (patch) | |
tree | b4db660f16a7136e770b77de254eca710c7d0bc5 /miscutils/time.c | |
parent | b444240b7537b236f670c2cb328cdd8a52ac433d (diff) | |
download | busybox-w32-b8a7102702bb2539ade9e3714ced3260e77047de.tar.gz busybox-w32-b8a7102702bb2539ade9e3714ced3260e77047de.tar.bz2 busybox-w32-b8a7102702bb2539ade9e3714ced3260e77047de.zip |
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
Diffstat (limited to 'miscutils/time.c')
-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 c30ef4311..7aaa12e2a 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -489,8 +489,8 @@ extern int time_main (int argc, char **argv) | |||
489 | bb_show_usage(); | 489 | bb_show_usage(); |
490 | 490 | ||
491 | run_command (argv, &res); | 491 | run_command (argv, &res); |
492 | summarize (stdout, output_format, argv, &res); | 492 | summarize (stderr, output_format, argv, &res); |
493 | fflush (stdout); | 493 | fflush (stderr); |
494 | 494 | ||
495 | if (WIFSTOPPED (res.waitstatus)) | 495 | if (WIFSTOPPED (res.waitstatus)) |
496 | exit (WSTOPSIG (res.waitstatus)); | 496 | exit (WSTOPSIG (res.waitstatus)); |