Ksh93 vs. Pdksh88: Custom PS1 prompt not working
Greetings!
I have to work with a NFS user id between two hosts: A running Ksh 93 and B running pdksh 88. Both host run RedHat. My problem has to do with the custom prompt I created on A: it works like a charm and display colors: Code:
PS1="$'\E[46;31m'`logname`@$'\E[1;33m'`hostname -s`:$'\E[0m>" Code:
$'\E[46;31m'NFS_user_name@$'\E[1;33m'host_name_for_B:$'\E[0m> Code:
export NODE=`uname -n` Any idea what could be the problem? Thanks! |
A very clever friend of mine figured out my problem:
Code:
PS1="$(printf "\033[46;31m%s@\033[1;33m%s\033[0m>" $(logname) $(hostname -s))" |
All times are GMT -5. The time now is 03:10 AM. |