On Saturday 13 January 2007 01:28, Jeff Waugh wrote:
> 'su -' will su into a login shell. /etc/profile will be executed as
> will ~/.bash_profile, ~/.bash_login and ~/.profile.
Almost. /etc/profile will be executed first, and then _one_of_ the
other 3 in the ~ directory, specifically the first o
"Leo Peschier said"
>
> Hi Leo,
> >
> > man bash has a good explanation about bash startup. Particularly,
> > INVOCATION. You basically got it right. :)
> >
> > When you su it is a non-login shell therefore, /etc/profile is not
> > executed. Since it is your system, you can change the scri
Hi Leo,
>
> man bash has a good explanation about bash startup. Particularly,
> INVOCATION. You basically got it right. :)
>
> When you su it is a non-login shell therefore, /etc/profile is not
> executed. Since it is your system, you can change the scripts to
> behave the way you want. (s