Subject: bin/23054: awk (gawk) is very broken on -current
To: None <gnats-bugs@gnats.netbsd.org>
From: Stephen Degler <stephen@degler.net>
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
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Degler
>Release:        NetBSD 1.6ZC
>Organization:
Very little, at best.
	
>Environment:
	
	
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
>Description:
	awk is failing some simple varible operations.
	consider the following:
	echo "abc.def.ghi.jkl" | awk -F. '{ print NF " " NF-1 }'
	3 3

>How-To-Repeat:
	run the test mentioned above.
>Fix:
	upgrade to awk 3.1.3.
>Release-Note:
>Audit-Trail:
>Unformatted: