Stop command-logging from non-stdin sources.

This commit is contained in:
Jason S. Ninneman 2017-05-24 22:31:26 -07:00 committed by Eric S. Raymond
parent 2fdd509f32
commit 74dc437a7e

2
misc.c
View file

@ -892,7 +892,7 @@ long I, VAL;
if (logfp)
fclose(logfp);
} else {
if (logfp)
if (logfp && OPENED == stdin)
IGNORE(fputs(INLINE+1, logfp));
else if (!isatty(0)) {
IGNORE(fputs("> ", stdout));