From 4c5474121fb033a7d7048d2c65c0d9ddb2640c37 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 10 Jun 2017 05:35:35 -0400 Subject: [PATCH] Unbreak the tests. linenoise doesn't eco its prompt to stdout, which messed them up. --- misc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc.c b/misc.c index 0eae162..08fdcfa 100644 --- 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)); -- 2.31.1