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) | |
download | busybox-w32-41d5ebee17a977c9ea34933f9dfe12b0fa1a9836.tar.gz busybox-w32-41d5ebee17a977c9ea34933f9dfe12b0fa1a9836.tar.bz2 busybox-w32-41d5ebee17a977c9ea34933f9dfe12b0fa1a9836.zip |
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'" \ | |||
29 | "" "" | 29 | "" "" |
30 | rm -rf awk_t1_* | 30 | rm -rf awk_t1_* |
31 | 31 | ||
32 | Q='":"' | ||
33 | |||
34 | testing "awk NF in BEGIN" \ | ||
35 | "awk 'BEGIN { print ${Q} NF ${Q} \$0 ${Q} \$1 ${Q} \$2 ${Q} }'" \ | ||
36 | ":0::::\n" \ | ||
37 | "" "" | ||
38 | |||
32 | exit $FAILCOUNT | 39 | exit $FAILCOUNT |