summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2004-08-15 23:18:24 +0000
committerKen Raeburn <raeburn@mit.edu>2004-08-15 23:18:24 +0000
commit6366c48e75aef798885046a93952b9cdd6f1f83a (patch)
tree893b13f2e7974dfff83d30c893963d28939258df /src
parentf6cef7981ba2728a563eb2fe6091c1d1d95d515d (diff)
* 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
Diffstat (limited to 'src')
-rw-r--r--src/util/db2/test/ChangeLog5
-rw-r--r--src/util/db2/test/run.test2
2 files changed, 6 insertions, 1 deletions
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 <raeburn@mit.edu>
+
+ * run.test (getnwords): Rewrite to drop blank lines before
+ counting lines, not after.
+
2004-08-12 Ken Raeburn <raeburn@mit.edu>
* 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