$MANPAGES
Peter Honeyman
honey at down.FUN
Thu Oct 24 22:07:15 AEST 1985
a few years ago, i hacked up berkeley's man.c for something similar. i
made it it examine PATH and replace all instances of a trailing "bin"
by a trailing "man."
this worked ok, but there were so many bugs in berkeley's man that i
threw the whole thing away last year and gave up on online man pages
altogether.
peter
ps: here's a script for .profile to set MANPATH:
oIFS="$IFS"
IFS=":$IFS"
for i in $PATH; do
if [ `basename $i` = "bin" ]; then
m=`echo $i|sed 's/bin$/man/'`
if [ -d $m ]; then
MANPATH="$MANPATH $m"
fi
fi
done
IFS="$oIFS"
More information about the Comp.unix
mailing list