Subject: CVS commit: src/dist/nawk
To: None <source-changes@NetBSD.org>
From: Havard Eidnes <he@netbsd.org>
List: source-changes
Date: 03/23/2005 17:24:42
Module Name:	src
Committed By:	he
Date:		Wed Mar 23 17:24:42 UTC 2005

Modified Files:
	src/dist/nawk: lib.c

Log Message:
Make nawk retain the text from the last line of the input as well as
the derived variables (fields & NF) under the END pattern.  This
implicitly complies with the SUSv2 specification at
  http://www.opengroup.org/onlinepubs/007908799/xcu/awk.html
which explicitly says that NF and NR must retain their values from
the last record seen.  Fixes PR#29659.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/dist/nawk/lib.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.