aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index bd3e0270..ea45efd9 100644
--- a/eval.c
+++ b/eval.c
@@ -2125,7 +2125,8 @@ post:
*/
break;
- } else if (pc->assign_ctxt == Op_K_getline
+ } else if ((pc->assign_ctxt == Op_K_getline
+ || pc->assign_ctxt == Op_K_getline_redir)
&& TOP()->numbr <= 0.0 /* top of stack has a number <= 0 */
) {
/* getline returned EOF or error */