Stop command-logging from non-stdin sources.
This commit is contained in:
parent
2fdd509f32
commit
74dc437a7e
1 changed files with 1 additions and 1 deletions
2
misc.c
2
misc.c
|
@ -892,7 +892,7 @@ long I, VAL;
|
||||||
if (logfp)
|
if (logfp)
|
||||||
fclose(logfp);
|
fclose(logfp);
|
||||||
} else {
|
} else {
|
||||||
if (logfp)
|
if (logfp && OPENED == stdin)
|
||||||
IGNORE(fputs(INLINE+1, logfp));
|
IGNORE(fputs(INLINE+1, logfp));
|
||||||
else if (!isatty(0)) {
|
else if (!isatty(0)) {
|
||||||
IGNORE(fputs("> ", stdout));
|
IGNORE(fputs("> ", stdout));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue