mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 03:32:18 +00:00
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.
This commit is contained in:
parent
28d4e16cd7
commit
2849209db2
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user