According to the man, bash loads up for an interactive shell:

/etc/profile
~/.bash_profile
~/.bash_login
~/.profile

Env gives me this as my path:

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:
/usr/X11R6/bin:/home/kaeru/bin

This is in ~/.profile (~/.bash_profile doesn't have it) and
~/.bash_login is empty.

However if I change ~/.profile and add some other paths to it, the new
paths are not exported to my profile.

So bash is getting it's path settings from somewhere else. /etc/profile
is commented out.

Where else is it getting my path settings from (login.conf?).

I tried changing PATH in that and it doesn't affect anything.

However if I cut and paste this path and put it into ~/.bash_profile
certain commands don't work, and my addition of /usr/local/jdk1.3.1/bin
finds java, but java fails to run (complaining about missing libs).

On the other hand root which is using csh, if I edit .cshrc and add the
java path in, everything works just as expected.

I'm confused :( Anything to enlighten me would be much appreciated.

Thanks.


-- 
Khairil Yusof <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to