From: Eric S. Raymond Date: Wed, 24 May 2017 04:28:38 +0000 (-0400) Subject: Fix the slightly broken prompt test. X-Git-Tag: seed~67 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=2bc887c84efbcd9ea4ae589d29285bc187173e9a;p=open-adventure.git Fix the slightly broken prompt test. --- diff --git a/misc.c b/misc.c index 6987d25..a08720c 100644 --- 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)) {