From: Ken Raeburn Date: Sun, 15 Aug 2004 23:18:24 +0000 (+0000) Subject: * run.test (getnwords): Rewrite to drop blank lines before counting lines, not after X-Git-Tag: krb5-1.4-beta1~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6366c48e75aef798885046a93952b9cdd6f1f83a;p=krb5.git * 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 --- 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