diff options
author | Karel Zak <kzak@redhat.com> | 2007-07-24 15:22:57 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2007-07-24 15:22:57 +0200 |
commit | 7baec9a5612358559d1556113657223a64e373d1 (patch) | |
tree | 0fd010f2bab26811f1dd2f5ebf4d54d080700870 /misc-utils | |
parent | 30294a2fe894bc1a3c71faf29e54f52dcbffc67e (diff) | |
download | util-linux-old-7baec9a5612358559d1556113657223a64e373d1.tar.gz |
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 <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |