Unbreak the tests.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 10 Jun 2017 09:35:35 +0000 (05:35 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 10 Jun 2017 09:35:35 +0000 (05:35 -0400)
linenoise doesn't eco its prompt to stdout, which messed them up.

misc.c

diff --git a/misc.c b/misc.c
index 0eae1623a25bc4c95539df1825435ff628087f5d..08fdcfaf6f1b1a3a89e41c8c5793096cda5c442f 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -730,6 +730,8 @@ bool MAPLIN(FILE *fp)
      *  and is not changed thereafter unless the routines on this page choose
      *  to do so. */
 
+    if (!oldstyle && !isatty(1))
+       fputs("> ", stdout);
     do {
        if (oldstyle) {
            IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,fp));