[BusyBox-cvs] busybox/miscutils time.c,1.4,1.5

Erik Andersen andersen at busybox.net
Fri Nov 7 21:39:18 UTC 2003


Update of /var/cvs/busybox/miscutils
In directory winder:/tmp/cvs-serv31253/miscutils

Modified Files:
	time.c 
Log Message:
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.


Index: time.c
===================================================================
RCS file: /var/cvs/busybox/miscutils/time.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- time.c	19 Mar 2003 09:12:29 -0000	1.4
+++ time.c	7 Nov 2003 21:39:14 -0000	1.5
@@ -489,8 +489,8 @@
 	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));




More information about the busybox-cvs mailing list