Michael Bovee said:
>Simply put, my PATH is really hosed up! /sbin nowhere to be found. No
>wonder I've been having so much trouble! But let me back up briefly
>and provide info that may be useful for troubleshooters:
>
><echo $PATH> returns the following info -- (linebreaks chosen for
>clarity, I hope)
>
>/usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
>/usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
>/usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
>/usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
>/usr/local/us/bin:/usr/local/qt/bin:/usr/local/us/bin:
>/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games/bin:
>/usr/games:/opt/gnome/bin:/opt/ked2/bin:.:/opt/gnome/bin:
>/local/qmake/bin:/usr/local/tmake/bin:/local/qmake/bin:
>/usr/local/tmake/bin:/local/qmake/bin:/usr/local/tmake/bin:
>local/qmake/bin:/usr/local/tmake/bin:/local/qmake/bin:
>/usr/local/tmake/bin
I have a bunch of ksh functions I got off the net somewhere that help
me keep my {MAN|LD_LIBRARY|CLASS|*}PATH variables clean. It works on
any variable with : seperations.
addpath - adds somthing to the beginning or end of the path IFF it's
not already on the path and it exists on the
system
delpath - removes it from the path
uniqpath - strips out repeating elements, preserving order.
I run on lots of different systems (Linux, NetBSD, Solaris, in the poast
SunOS, SGI, HP-UX, Tru64, Ultrix, AIX) and run the same .profile.
So on SGI, I want /usr/bsd in my path. On SunOS, /usr/ucb. addpath
will do the right thing. It takes longer to login, but then my system
doesn't waste time searching down bad paths for stuff. And I can have
one profile to maintain.
I think it will run in bash too. If anyone wants a tar of it, send me
email.
--
-------
Tom Buskey
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************