From 6366c48e75aef798885046a93952b9cdd6f1f83a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 15 Aug 2004 23:18:24 +0000 Subject: [PATCH] * run.test (getnwords): Rewrite to drop blank lines before counting lines, not after git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16665 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/db2/test/ChangeLog | 5 +++++ src/util/db2/test/run.test | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/db2/test/ChangeLog b/src/util/db2/test/ChangeLog index 3b1711366..54c0f218c 100644 --- a/src/util/db2/test/ChangeLog +++ b/src/util/db2/test/ChangeLog @@ -1,3 +1,8 @@ +2004-08-15 Ken Raeburn + + * run.test (getnwords): Rewrite to drop blank lines before + counting lines, not after. + 2004-08-12 Ken Raeburn * run.test (getnwords): New function. Uses sed to get N words diff --git a/src/util/db2/test/run.test b/src/util/db2/test/run.test index 8def66fae..6b45a4851 100644 --- a/src/util/db2/test/run.test +++ b/src/util/db2/test/run.test @@ -69,7 +69,7 @@ main() } getnwords() { - sed -e ${1}q -e '/^$/d' $DICT + sed -e '/^$/d' < $DICT | sed -e ${1}q } # Take the first hundred entries in the dictionary, and make them -- 2.26.2