Hi,
Trying to change the prompt. I have the following code.
export PS1='
[$PWD]
<${USER}@`hostname -s`>$ '
The hostname is not displayed
[/users/home/abc]
<abc@`hostname -s`>$ uname -a
AIX xyz 1 6 00F736154C00
[/users/home/adcwl4h]
<adcwl4h@`hostname -s`>$
If I use double quotes, then the hostname is printed properly but the path on the screen display does not change even when I change the directory. I'm using korn shell in AIX.
So...
1) what is the diff b/w single and double quote
2) what is the correct code to display my path, user and hostname as I'm trying with the above code.
Appreciate your help.