From: Karel Zak Date: Tue, 24 Jul 2007 13:22:57 +0000 (+0200) Subject: script: improve quiet mode X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7baec9a5612358559d1556113657223a64e373d1;p=util-linux 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 a8506488..03dd9328 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)