From: Jason S. Ninneman Date: Thu, 25 May 2017 05:31:26 +0000 (-0700) Subject: Stop command-logging from non-stdin sources. X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=74dc437a7e7644e18d3cc6192f92d2f92a394106;p=open-adventure.git Stop command-logging from non-stdin sources. --- diff --git a/misc.c b/misc.c index 3243f1e..3bca473 100644 --- a/misc.c +++ b/misc.c @@ -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));