which .profile is used

Douglas J Hunley doug
Mon May 17 11:29:58 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David A. Bandel spewed electrons into the ether that resembled:
> vnc is opening a shell one level removed from a login shell.  That is,
> when you look at your return from the `set` command, you'll see SHLVL=2 or
> higher.  Login shells read $HOME/.profile.  If it's bash it reads
> $HOME/.bash_profile.  If it's not a login shell (SHLVL>1), then the files
> read include $HOME/.bashrc, but not any of the *profile files.  If you
> want to have your environment look like a login shell, you'll either need
> to have bash start as a login shell (bash --login), or have $HOME/.bashrc
> source $HOME/.profile and/or $HOME/.bash_profile.
>
> Ah yes, the elusive, "why do things work the way they do?".

Bandel, you da man! mine if I put this up somewhere on the site? this was one 
of the biggest stumbling blocks learning unix many moons ago, and you just 
gave the most succint explanation I've ever seen
- -- 
Douglas J Hunley (doug at hunley.homeip.net) - Linux User #174778
Admin: Linux StepByStep - http://www.linux-sxs.org
	and http://jobs.linux-sxs.org

die_if_kernel("Penguin instruction from Penguin mode??!?!", regs);
	2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vJFbSrrWWknCnMIRAqLbAKCYWGLLsEtthNy1QZFiGQWdcZxujgCghIbQ
UjWWXrlX7cvx8SHuCVd/s1k=
=2HWa
-----END PGP SIGNATURE-----





More information about the Linux-users mailing list