summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenis Vlasenko2009-01-25 01:00:15 +0000
committerDenis Vlasenko2009-01-25 01:00:15 +0000
commit41d5ebee17a977c9ea34933f9dfe12b0fa1a9836 (patch)
tree8778f8f8f50cad595ace6e9f407a73c16d19e4b2 /testsuite
parentbdea2c06dc7144de67fbadce9a7f8fc07cf57c34 (diff)
downloadbusybox-41d5ebee17a977c9ea34933f9dfe12b0fa1a9836.zip
busybox-41d5ebee17a977c9ea34933f9dfe12b0fa1a9836.tar.gz
awk: in BEGIN section $0 should be "", not "0".
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/awk.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index aa38636..953a6e5 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