[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 ?
Thanks


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 ?
Thanks