Stop command-logging from non-stdin sources.

This commit is contained in:
Jason S. Ninneman 2017-05-24 22:31:26 -07:00
parent 6ba9a7de7f
commit 580565e254

2
misc.c
View file

@ -894,7 +894,7 @@ long I, VAL;
if (logfp && OPENED == stdin) if (logfp && OPENED == stdin)
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(INLINE+1, stdout)); IGNORE(fputs(INLINE+1, stdout));