Echo commands to stdout when replaying...
authorEric S. Raymond <esr@thyrsus.com>
Wed, 24 May 2017 00:38:46 +0000 (20:38 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 23 Mar 2023 15:28:53 +0000 (11:28 -0400)
...makes check loads full transcripts abd more readable.

misc.c

diff --git a/misc.c b/misc.c
index 63052ced47351603e80fccdd31da28c47ca90cca..1ca50d857c90a151ea8dad5630a67593ba732d81 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -894,6 +894,8 @@ long I, VAL;
        } else {
                if (logfp)
                        IGNORE(fputs(INLINE+1, logfp));
+               else if (!isatty(0))
+                       IGNORE(fputs(INLINE+1, stdout));
                LNLENG=0;
                for (I=1; I<=sizeof(INLINE) && INLINE[I]!=0; I++) {
                VAL=INLINE[I]+1;