Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site down.FUN Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!down!honey From: honey@down.FUN (Peter Honeyman) Newsgroups: net.wanted.sources,net.unix Subject: Re: $MANPAGES Message-ID: <612@down.FUN> Date: Thu, 24-Oct-85 08:07:15 EDT Article-I.D.: down.612 Posted: Thu Oct 24 08:07:15 1985 Date-Received: Fri, 25-Oct-85 04:11:29 EDT References: <834@kuling.UUCP> <307@ssc-vax.UUCP> Organization: CS Dept., Princeton University Lines: 23 Xref: watmath net.wanted.sources:1444 net.unix:6015 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"