diff options
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/script.1 | 3 | ||||
-rw-r--r-- | term-utils/script.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/term-utils/script.1 b/term-utils/script.1 index 60a0e53a0..67e106688 100644 --- a/term-utils/script.1 +++ b/term-utils/script.1 @@ -82,7 +82,8 @@ Allow the default output destination, i.e. the typescript file, to be a hard or symbolic link. The command will follow a symbolic link. .TP \fB\-q\fR, \fB\-\-quiet\fR -Be quiet. +Be quiet (do not write start and done messages to either standard output +or the typescript file). .TP \fB\-t\fR, \fB\-\-timing\fR[=\fIfile\fR] Output timing data to standard error, or to diff --git a/term-utils/script.c b/term-utils/script.c index 1530e6726..21fb5af9e 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -437,7 +437,8 @@ dooutput(void) { 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); FD_ZERO(&readfds); |