Fix the slightly broken prompt test.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 24 May 2017 04:28:38 +0000 (00:28 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 24 May 2017 04:28:38 +0000 (00:28 -0400)
misc.c

diff --git a/misc.c b/misc.c
index 6987d254788a4f961269de5d4060724bfc2aaab0..a08720cbeb20b08cd7414d20eb743343bb3f1d83 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -886,7 +886,7 @@ long I, VAL;
 
        if(MAP2[1] == 0)MPINIT();
 
-       if (!oldstyle && isatty(0) && !SETUP)
+       if (!oldstyle && SETUP)
            fputs("> ", stdout);
        IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED));
        if (feof(OPENED)) {