diff options
-rw-r--r-- | usr.bin/bc/scan.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/bc/scan.l b/usr.bin/bc/scan.l index 40f8ae6..0de6dc8 100644 --- a/usr.bin/bc/scan.l +++ b/usr.bin/bc/scan.l @@ -301,7 +301,7 @@ static int bc_yyinput(char *buf, int maxlen) { int num; - if (interactive) { + if (yyin == stdin && interactive) { const char *bp; if ((bp = el_gets(el, &num)) == NULL || num == 0) |