projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28d4e16
)
Patch from Steven Scholz to send the output from 'time'
author
Eric Andersen
<andersen@codepoet.org>
Fri, 7 Nov 2003 21:39:14 +0000
(21:39 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 7 Nov 2003 21:39:14 +0000
(21:39 -0000)
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.
miscutils/time.c
patch
|
blob
|
history
diff --git
a/miscutils/time.c
b/miscutils/time.c
index c30ef4311e3cd0d9fa1e712671b8cd3998be0aa8..7aaa12e2ade5f6a64254cf0b1de6fa2c96c78764 100644
(file)
--- 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 (std
out
, output_format, argv, &res);
- fflush (std
out
);
+ summarize (std
err
, output_format, argv, &res);
+ fflush (std
err
);
if (WIFSTOPPED (res.waitstatus))
exit (WSTOPSIG (res.waitstatus));