[CentOS] Gnome-terminal $PATH

Sun Jan 14 22:53:20 UTC 2007
Daniel de Kok <daniel-lists at taickim.com>

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