From cb3db09270b4caaddb0d606ec892841c149698eb Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 22 May 2014 06:11:32 +0300 Subject: Allow any redirected getline inside BEGINFILE/ENDFILE. --- interpret.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'interpret.h') diff --git a/interpret.h b/interpret.h index 29feb821..27f194ae 100644 --- a/interpret.h +++ b/interpret.h @@ -1098,10 +1098,6 @@ match_re: JUMPTO(ni); case Op_K_getline_redir: - if ((currule == BEGINFILE || currule == ENDFILE) - && pc->into_var == false - && pc->redir_type == redirect_input) - fatal(_("`getline' invalid inside `%s' rule"), ruletab[currule]); r = do_getline_redir(pc->into_var, pc->redir_type); PUSH(r); break; -- cgit v1.2.3