Subject: bin/23054: awk (gawk) is very broken on -current
To: None <>
From: Stephen Degler <>
List: netbsd-bugs
Date: 10/04/2003 20:28:03
>Number:         23054
>Category:       bin
>Synopsis:       awk has bugs in evaluating NF and NR.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 05 00:29:00 UTC 2003
>Originator:     Stephen Degler
>Release:        NetBSD 1.6ZC
Very little, at best.
System: NetBSD host-unknown 1.6ZC NetBSD 1.6ZC (HOST-UNKNOWN) #0: Mon Sep 29 09:30:45 EDT 2003 sdegler@host-unknown:/vol1/NetBSD/kernels/HOST-UNKNOWN i386
Architecture: i386
Machine: i386
	awk is failing some simple varible operations.
	consider the following:
	echo "abc.def.ghi.jkl" | awk -F. '{ print NF " " NF-1 }'
	3 3

	run the test mentioned above.
	upgrade to awk 3.1.3.