Hi, In ksh93 I have PS1 set like this: PS1='`echo $(whoami)@$(hostname) | sed -e "s/^r...@.*/&# /" -e t -e "s/$/$ /"`' export PS1
which gives me the following prompt and behavior: pgar...@boole$ su Password: r...@boole# however, this is what happens when I try to use the same .profile on a Solaris system with ksh88: pgar...@boole$ ssh godel PAM authentication Password: Last login: Fri Aug 13 2010 16:15:20 -0600 from boole.is.mcw.ed No mail. `echo $(whoami)@$(hostname) | sed -e s/^r...@.*/&# / -e t -e s/$/$ /` and when I su: `echo $(whoami)@$(hostname) | sed -e s/^r...@.*/&# / -e t -e s/$/$ /`su Password: # Is there a way to make this work on both versions? Is there a better way to achieve the same prompt? Thank you, Phil Garcia
_______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
