qse/ase/test/awk/t33.awk

16 lines
313 B
Awk
Raw Normal View History

2006-08-27 15:29:21 +00:00
BEGIN {
ARGV[1] = 20;
print "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
delete NF;
print "NF[1]=", NF[1];
2006-08-30 07:15:14 +00:00
NF[1] = 20; # this line should not be allowed
2006-08-27 15:29:21 +00:00
print "AWK IMPLEMENTATION ERROR: hey... NF[1] = 20 has succeeded in the BEGIN block. your interpreter must be wrong";
print "NF[1]=", NF[1];
}
{
NF = 30;
}