[offtopic] Re: [PLUG] .profile
Jonathan Sergent
sergent@ETLA.NET
Thu, 02 Sep 1999 07:34:16 -0700
[still offtopic]
] if [1 -f ${HOME}/tmp/login ]; then
] touch ${HOME}/tmp/login
] exec ${HOME}/bash -l
] rm ${HOME}/tmp/login
] fi;
Nothing happens after exec.
Even if it you take out the exec, this doesn't let you log in more
than once. What you can do is some tomfoolery with environment
variables to make sure that you do not do the exec more than once.
But you still have to figure out that you're a login shell and only
exec bash then, or some things will definitely start to break.
BTW, bash reads both .bash_profile and .profile.
--jss.