Re: Weird PATH problem



On 2006-05-26, dk wrote:
I'm having a problem with PATH on SuSE 9.3.

The standard system-wide path is being established as per normal
with /etc/profile. Another path item is added by a Java script
in /etc/profile.d. I then have a bunch of additional items that are added
with /etc/profile.local - but these are being added twice!

Now, it's probably not a huge problem, but it's untidy and that bugs me. Any
idea where I should look? As far as I can see, /etc/profile
loads /etc/profile.local correctly (and I haven't tampered with the
script). I guess something else in /etc/profile.d might be doing something
weird - ie, loading /etc/profile.local again, but I haven't messed with any
of those scripts either. Any pointers would be appreciated.

I use a set of shell functions to manipulate the PATH variable.
They are available at
<http://cfaj.freeshell.org/src/scripts/path-funcs-sh.html>.

The four functions are:

path() ## add arguments to PATH; if no arguments, show $PATH
addpath() ## add directory or directories to $PATH
checkpath() ## verify that all entries in $PATH are directories; remove dupes
rmpath() ## remove directory or directories from $PATH


--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.



Relevant Pages