From 40b3741f63c19e38077d57f4ce4737916ec5073e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 12 Nov 2010 12:23:33 +0200 Subject: Bring in development gawk changes. --- awklib/eg/prog/wc.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'awklib/eg/prog/wc.awk') diff --git a/awklib/eg/prog/wc.awk b/awklib/eg/prog/wc.awk index 8fb48164..d51b9ff2 100644 --- a/awklib/eg/prog/wc.awk +++ b/awklib/eg/prog/wc.awk @@ -34,14 +34,14 @@ BEGIN { } function beginfile(file) { - chars = lines = words = 0 + lines = words = chars = 0 fname = FILENAME } function endfile(file) { - tchars += chars tlines += lines twords += words + tchars += chars if (do_lines) printf "\t%d", lines if (do_words) -- cgit v1.2.3