script: --quiet option is not quiet.
Specifying 'script --quiet ...' still produces the 'Script started' message in the typescript file. The --quiet option implies that the script program should not log any of its output to the typescript file. Originally reported at: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693966 Signed-off-by: Andreas Henriksson <andreas@fatal.se>
This commit is contained in:
parent
d121efdb6e
commit
1474c09ea8
|
@ -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.
|
or symbolic link. The command will follow a symbolic link.
|
||||||
.TP
|
.TP
|
||||||
\fB\-q\fR, \fB\-\-quiet\fR
|
\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
|
.TP
|
||||||
\fB\-t\fR, \fB\-\-timing\fR[=\fIfile\fR]
|
\fB\-t\fR, \fB\-\-timing\fR[=\fIfile\fR]
|
||||||
Output timing data to standard error, or to
|
Output timing data to standard error, or to
|
||||||
|
|
|
@ -437,6 +437,7 @@ dooutput(void) {
|
||||||
|
|
||||||
tvec = time((time_t *)NULL);
|
tvec = time((time_t *)NULL);
|
||||||
my_strftime(obuf, sizeof obuf, "%c\n", localtime(&tvec));
|
my_strftime(obuf, sizeof obuf, "%c\n", localtime(&tvec));
|
||||||
|
if (!qflg)
|
||||||
fprintf(fscript, _("Script started on %s"), obuf);
|
fprintf(fscript, _("Script started on %s"), obuf);
|
||||||
|
|
||||||
FD_ZERO(&readfds);
|
FD_ZERO(&readfds);
|
||||||
|
|
Loading…
Reference in New Issue