Re: Gnome-terminal $PATH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, January 14, 2007 11:31 pm, Patrick Useldinger wrote:
>  From `man su`:
> "The optional argument - may be used to provide an environment similiar
> to what the user would expect had the user logged in directly."
>
> I think it simply re-runs the bash rc scripts for the user you change to.

Actually, it starts the shell as a login shell. This will execute
/etc/profile and /etc/.profile (which are only executed for login shells).
Normally it won't (and in the case of bash it will execute bash-specific
stuff like .bashrc).

-- Daniel

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux