Kent West wrote:

According to "man bash",

When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable.



In /etc/profile are these statements (they're the only path-related statements in this file):


PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
export PATH



I do not have a ~/.bash_login nor a ~/.profile. There are no path-related statements in my ~/.bashrc, and the only path-related statements in my ~/.bash_profile are these:


# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi



(Interestingly, I don't see an "export PATH".)


But at a BASH prompt, this is the result:

[EMAIL PROTECTED]:/home/westk> echo $PATH
/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin



which does not have my ~/bin, nor the same path as defined in /etc/profile. Where is my path being set then?



I don't have the solution yet, but I have discovered that it's KDE-related. If I Ctrl-Alt-F2 to a virtual console, I get the path I would expect. If I start X with startx/icewm instead of KDM/KDE, I get the path I expect. I'll try KDM/icewm and see what that does.


--
Kent


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to