OpenSolaris

Printable Version Enter a New Search
Bug ID 4858166
Synopsis makewhatis should remove duplicate windex entries
State 1-Dispatched (Default State)
Category:Subcategory utility:man
Keywords bite-size | oss-bite-size | oss-request
Sponsor
Submitter
Reported Against s10_47 , snv_85 , snv_86 , s9u3_08
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs 4995672 , 6686126
Submit Date 3-May-2003
Last Update Date 14-July-2008
Description
makewhatis will allow duplicate entries in the windex file, wasting space, and
annoying users when they have to wade through useless duplicates from man -k

The man pages for the OpenGL unbundled product seem to especially trigger this:
% mkdir /tmp/man ; cd /tmp/man
% ln -s /usr/openwin/man/man3gl .
% /usr/lib/makewhatis /tmp/man
% ls -l windex 
-rw-r--r--   1 alanc    staff    1104263 May  3 15:20 windex
[Using a copy of /usr/lib/makewhatis with -u added to sort command]
% ~/tmp/makewhatis /tmp/man
% ls -l windex
-rw-r--r--   1 alanc    staff      41484 May  3 15:20 windex
Fixing this should be as simple as changing "sort" to "sort -u" in the makewhatis
shell script.
Work Around
cd <man directory>
mv windex windex.bak
uniq windex.bak > windex
Comments
N/A