summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-23 08:06:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-23 08:06:51 +0000
commit10e14168284459afae2990a7dcf67e5f42cddfc2 (patch)
treef23985cc94275617e5bf33745b55a9e06a73a01a
parent5a70e539002382b3601c3b13aa9d01f2da3aa59a (diff)
tail anchor, to fetch 2nd manpage name, which is less likely to be over-written by the mail title; d
-rw-r--r--share/man/makewhatis.sed4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/makewhatis.sed b/share/man/makewhatis.sed
index c9f3ac315fc..d8d71853e31 100644
--- a/share/man/makewhatis.sed
+++ b/share/man/makewhatis.sed
@@ -36,8 +36,8 @@
# @(#)makewhatis.sed 8.4 (Berkeley) 4/3/94
#
-/^[a-zA-Z][a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*/ {
- s;^[a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*;\1;
+/[a-zA-Z][a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*/ {
+ s;^.*[a-zA-Z0-9\._+\-]*(\([a-zA-Z0-9\._+\-]*\).*;\1;
h
d
}