which .profile is used
David A. Bandel
david
Mon May 17 11:39:17 PDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 23 Oct 2002 16:47:49 -0400
begin Chris Kassopulo <ckasso at sprynet.com> spewed forth:
> On Tue, 16 Apr 2002 20:44:31 -0500
> "David A. Bandel" <david at pananix.com> wrote:
>
> > I'd try something like this (files that don't exist are ignored):
> > login shell (SHLVL=1):
> > /etc/profile
> > $HOME/.profile
> > $HOME/.bash_profile
> >
> > non-login shell (SHLVL>=2):
> > /etc/bashrc
> > $HOME/.bashrc
> >
> > On logout:
> > /etc/logout
> > $HOME/.logout
> > $HOME/.bash_logout
>
> Qualifiers added.
>
> files that don't exist are ignored
>
> login shell (SHLVL=1):
> /etc/profile and
> $HOME/.profile or
> $HOME/.bash_profile or
> $HOME/.bash_login
>
> non-login shell (SHLVL>=2):
> /etc/bashrc and
> $HOME/.bashrc
>
> logout:
> /etc/logout and
> $HOME/.logout or
> $HOME/.bash_logout
>
> Chris Kassopulo
Excellent, Chris. Jeesh, I 'd forgotten this (wrote it six months ago --
no research, just three minutes typing out what was in my head). I'd
forgotten .bash_login, since I haven't used .xx_login since my Ultrix
days. You sure the login shell doesn't check both .profile and
.bash_profile if they're both there?
Other than that, the above qualifiers look good.
Ciao,
David A. Bandel
- --
Focus on the dream, not the competition.
-- Nemesis Racing Team motto
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
iD8DBQE9tw1i3uVcotqGMQcRAmyvAKCV4JIgwFfXEDJ5GuvlKGuhcbaviACeOam4
yso5UvMFsLArDaB6PVn3UjY=
=ULnL
-----END PGP SIGNATURE-----
More information about the Linux-users
mailing list