From 7baec9a5612358559d1556113657223a64e373d1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 24 Jul 2007 15:22:57 +0200 Subject: [PATCH] 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 --- misc-utils/script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5