Subject: Re: [ast-users] ksh93/ksh88 compatible prompt? -------- > 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: >
ksh88 was very limited in the ability to create a prompt. It only allowed variables to be expanded. ksh93 not only added command substitution, but It also allows you do write a function that generates the prompt, PS1.get. David Korn [email protected] _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
