awk: in BEGIN section $0 should be "", not "0".

This commit is contained in:
Denis Vlasenko
2009-01-25 01:00:15 +00:00
parent bdea2c06dc
commit 41d5ebee17
2 changed files with 16 additions and 13 deletions

View File

@@ -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