diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-25 01:00:15 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-01-25 01:00:15 +0000 |
commit | 41d5ebee17a977c9ea34933f9dfe12b0fa1a9836 (patch) | |
tree | 8778f8f8f50cad595ace6e9f407a73c16d19e4b2 /testsuite | |
parent | bdea2c06dc7144de67fbadce9a7f8fc07cf57c34 (diff) |
awk: in BEGIN section $0 should be "", not "0".
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/awk.tests | 7 |
1 files changed, 7 insertions, 0 deletions
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 |