Ken Schneider - openSUSE wrote:
su -p Both reset parts (if not all of) my 'env'
If you want to maintain your login env just plain su will do that.
Except that it doesn't do that: Ishtar:law> echo $DISPLAY athenae:0 Ishtar:law> 'su' Password: home/law# echo $DISPLAY :0.0 ---- with the "-p" or "-m" it also kept DISPLAY. Now it doesn't. without -p, I get these differences: DISPLAY=athenae:0 | DBUS_SESSION_BUS_ADDRESS=unix:abstrac > DBUS_SESSION_BUS_PID=14207 > DISPLAY=:0.0 HISTFILE=/home/law/.histIshtar_pts/1 | HISTFILE=/root/.histIshtar_pts/1 HOME=/home/law | HOME=/root LS_OPTIONS=-N --color=tty -T 0 | LS_OPTIONS=-A -N --color=tty -T 0 OLDPWD=/etc/rc.d < PATH=.:/sbin:/usr/local/sbin:/home/la | PATH=.:/sbin:/usr/local/sbin:/home/la PATH_HOME=/home/law | PATH_HOME=/root PS1=\[$(titlebar)\]${HOSTNAME}:$(spwd | PS1=\[\]$(spwd "$PWD" )#\[ REMOTEHOST=athenae | REMOTEHOST= SHLVL=1 | SHLVL=2 USER=law | USER=root _bashrc=1 | _bashrc=2 _sh_LOGNAME_=law | _sh_LOGNAME_=root with -p, I get: DISPLAY=athenae:0 | DISPLAY=:0.0 LS_OPTIONS=-N --color=tty -T 0 | LS_OPTIONS=-A -N --color=tty -T 0 OLDPWD=/etc/rc.d < PATH=.:/sbin:/usr/local/sbin:/home/la | PATH=.:/sbin:/usr/local/sbin:/home/la PS1=\[$(titlebar)\]${HOSTNAME}:$(spwd | PS1=\[\]$(spwd "$PWD" )#\[ REMOTEHOST=athenae | REMOTEHOST= SHLVL=1 | SHLVL=2 USER=law | USER=root _bashrc=1 | _bashrc=2 _sh_LOGNAME_=law | _sh_LOGNAME_=root My REMOTEHOST, DISPLAY PS1, and PATH all change. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org