From owner-freebsd-questions Mon Nov 18 6:43:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D0637B401 for ; Mon, 18 Nov 2002 06:43:45 -0800 (PST) Received: from smtp2.jaring.my (smtp2.jaring.my [61.6.32.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4084A43E8A for ; Mon, 18 Nov 2002 06:43:44 -0800 (PST) (envelope-from kaeru@pd.jaring.my) Received: from [61.6.96.184] (j170.crc23.jaring.my [61.6.96.184]) by smtp2.jaring.my (8.11.4/8.11.4) with ESMTP id gAIEhes22121 for ; Mon, 18 Nov 2002 22:43:41 +0800 (MYT) Subject: Confused about bash profiles and environment settings. From: Khairil Yusof To: questions@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Q8aWDKjWn8w+UtrAG9sz" Organization: Message-Id: <1037630612.73684.18.camel@daemon.home> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 18 Nov 2002 22:43:32 +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-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 --=-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