aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-07-27 12:13:57 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-07-27 12:13:57 +0300
commitdf468ca85832d555f9b2ed8ee8eae5b80dd137cd (patch)
tree0bc377d59c0de62672aab4ba852877dbe3d4dd67 /awkgram.c
parent30e8a37825c9b9e67c0cf440f7617508b7898c2b (diff)
downloadegawk-df468ca85832d555f9b2ed8ee8eae5b80dd137cd.tar.gz
egawk-df468ca85832d555f9b2ed8ee8eae5b80dd137cd.tar.bz2
egawk-df468ca85832d555f9b2ed8ee8eae5b80dd137cd.zip
Forgot to commit awkgram.c.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/awkgram.c b/awkgram.c
index 4000d0eb..36947c41 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -3186,8 +3186,8 @@ regular_print:
&& (yyvsp[0])->lasti->opcode == Op_K_getline_redir
&& (yyvsp[0])->lasti->redir_type == redirect_twoway)
yyerror(_("multistage two-way pipelines don't work"));
- if (do_lint && (yyvsp[0])->lasti->opcode == Op_concat && (yyvsp[-2])->redir_type == redirect_output)
- lintwarn(_("concatenation as I/O redirection target is ambiguous"));
+ if (do_lint && (yyvsp[-2])->redir_type == redirect_output && (yyvsp[0])->lasti->opcode == Op_concat)
+ lintwarn(_("concatenation as I/O `>' redirection target is ambiguous"));
(yyval) = list_prepend((yyvsp[0]), (yyvsp[-2]));
}
#line 3194 "awkgram.c" /* yacc.c:1646 */
@@ -3835,10 +3835,10 @@ regular_print:
case 163:
#line 1733 "awkgram.y" /* yacc.c:1646 */
{
- // Always include. Allows us to lint warn on
- // print "foo" > "bar" 1
- // but not warn on
- // print "foo" > ("bar" 1)
+ // Always include. Allows us to lint warn on
+ // print "foo" > "bar" 1
+ // but not warn on
+ // print "foo" > ("bar" 1)
(yyval) = list_append((yyvsp[-1]), bcalloc(Op_parens, 1, sourceline));
}
#line 3845 "awkgram.c" /* yacc.c:1646 */