From 41d5ebee17a977c9ea34933f9dfe12b0fa1a9836 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 25 Jan 2009 01:00:15 +0000 Subject: awk: in BEGIN section $0 should be "", not "0". --- testsuite/awk.tests | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuite/awk.tests') diff --git a/testsuite/awk.tests b/testsuite/awk.tests index aa386361f..953a6e5e1 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests @@ -29,4 +29,11 @@ testing "awk 'gcc build bug'" \ "" "" rm -rf awk_t1_* +Q='":"' + +testing "awk NF in BEGIN" \ + "awk 'BEGIN { print ${Q} NF ${Q} \$0 ${Q} \$1 ${Q} \$2 ${Q} }'" \ + ":0::::\n" \ + "" "" + exit $FAILCOUNT -- cgit v1.2.3