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