On Sun, 19 Mar 2006 11:37:57 -0600, Octavio Ruiz (Ta^3) wrote: > You also want to set, > > export PROMPT_COMMAND="${PROMPT_COMMAND:+${PROMPT_COMMAND} ;} history -a" > > in cojuction with histappend. This results in PROMPT_COMMAND being set to "history -a; history -a" after using su. It is added for the initial login and again for the root login. However, "PROMPT_COMMAND="history -a" seems to work, as I don't use PROMPT_COMMAND for anything else. echo $PROMPT_COMMAND | grep -q history\ -a || export PROMPT_COMMAND... should take care of it in a more general case. -- Neil Bothwick Top Oxymorons Number 43: Genuine imitation