From 6146406990839864bfc5074327f44f207d3b61c2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 24 May 2017 23:05:19 -0400 Subject: [PATCH] Re-enable skipping of #-led comments. --- misc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index 3e0bb41..7057bad 100644 --- a/misc.c +++ b/misc.c @@ -886,8 +886,11 @@ long I, VAL; if(MAP2[1] == 0)MPINIT(); if (!oldstyle && SETUP && OPENED == stdin) - fputs("> ", stdout); - IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + fputs("> ", stdout); + do { + IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + } while + (!feof(OPENED) && INLINE[1] == '#'); if (feof(OPENED)) { if (logfp && OPENED == stdin) fclose(logfp); -- 2.31.1