You are not logged in.
Pages: 1
Hey, all!
Please consider this:
root@spark:~>su - synd
[03:20:26]
synd@spark:~>echo $HOME
/opt/http/synd/
[03:20:33]
synd@spark:~>echo $PS1
[\[\e[32;1m\]\t\[\e[0m\]]\n\u@\h:\w>
[03:20:36]
synd@spark:~>cd wwwroot/
[03:20:42]
synd@spark:/opt/http/synd/wwwroot>
'\w' should be replaced by the current working directory, i.e. /opt/http/synd/. However, you can see the resulting prompt in the last line which has no tilde (~); suppose '/opt/home/synd' should be replaced. Others users don't have such an issue. What am I doing wrong in this simple thing?
Offline
try a capital W
PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.
Offline
Check your /etc/passwd file, do you have a trailing / at the end of you home directory?
ie,
BAD
http:x:33:33:http:/srv/http/:/bin/false
GOOD
http:x:33:33:http:/srv/http:/bin/false
Offline
Check your /etc/passwd file, do you have a trailing / at the end of you home directory?
ie,
BAD
http:x:33:33:http:/srv/http/:/bin/false
GOOD
http:x:33:33:http:/srv/http:/bin/false
Thank you so much! That was a clue.
Offline
Pages: 1