From: Karel Zak Date: Tue, 24 Jul 2007 13:22:57 +0000 (+0200) Subject: script: improve quiet mode X-Git-Tag: v2.13-rc3~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7baec9a5612358559d1556113657223a64e373d1;p=thirdparty%2Futil-linux.git script: improve quiet mode script(1) is not consistent and writes "Script started on.." to scriptfile, although the others messages are ignored when running with '-q'. Signed-off-by: Karel Zak --- diff --git a/misc-utils/script.c b/misc-utils/script.c index a8506488cc..03dd93285b 100644 --- a/misc-utils/script.c +++ b/misc-utils/script.c @@ -274,7 +274,8 @@ dooutput() { #endif tvec = time((time_t *)NULL); my_strftime(obuf, sizeof obuf, "%c\n", localtime(&tvec)); - fprintf(fscript, _("Script started on %s"), obuf); + if (!qflg) + fprintf(fscript, _("Script started on %s"), obuf); for (;;) { if (tflg)