Date: 18 Nov 2002 22:43:32 +0800 From: Khairil Yusof <kaeru@pd.jaring.my> To: questions@freebsd.org Subject: Confused about bash profiles and environment settings. Message-ID: <1037630612.73684.18.camel@daemon.home>
next in thread | raw e-mail | index | archive | help
--=-Q8aWDKjWn8w+UtrAG9sz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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=3D/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. --=20 Khairil Yusof <kaeru@pd.jaring.my> --=-Q8aWDKjWn8w+UtrAG9sz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA92PyUDAqnLW/+/X8RAk22AJ9IowSATY6DAwbDk6ARD2ha8BGrHgCeIeO1 SlQ6jgKZ1jWdaxGVyMX6dPY= =7F18 -----END PGP SIGNATURE----- --=-Q8aWDKjWn8w+UtrAG9sz-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037630612.73684.18.camel>