Article 5B9Q9 [SOLVED] ksh .profile, customized prompt PS1 does not work

[SOLVED] ksh .profile, customized prompt PS1 does not work

by
B612
from LinuxQuestions.org on (#5B9Q9)
Hello,

Under the homedirectory of user using kshell I have a .profile file with this definition for PS1

Code:PS1='^[]2;$HOSTNAME:$USER:$PWD^[G^[]1;^[G$HOSTNAME:$PWD$'I have 2 servers with the same definition.
One of them the prompt seems like this :
Code:ids1:/IDS/informix$
And on the second one (copy/paste from the first server), it does not work and it seems like this :
Code:^[]2;ids-master:informix:/IDS/informix^[G^[]1;^[Gids-master:/IDS/informix$
On both servers
echo $0 = -ksh
ls -la =
One with -rw-rw-r-- 1 informix informix
And the second one with -rw-rw-r--. 1 informix informix
ksh --version =
version sh (AT&T Research) 93u+ 2012-08-01

What i m missing ?

Thankslatest?d=yIl2AUoC8zA latest?i=Mdcw9G6r9Vo:5TKRmg3_4CY:F7zBnMy latest?i=Mdcw9G6r9Vo:5TKRmg3_4CY:V_sGLiP latest?d=qj6IDK7rITs latest?i=Mdcw9G6r9Vo:5TKRmg3_4CY:gIN9vFwMdcw9G6r9Vo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments