Hi everyone,
I recently installed LMDE version on my new machine at work and I noticed a bizarre name change when I SSH to LMDE machine remotely. What happens is when I cd to my home directory, just type 'cd home', the name 'home' changes to 'hmee'
So, at the prompt it says: "victor hmee #"
if I pwd, I get the right name "/home", but at the prompt it says "hmee".
Has anyone noticed this? Is it some kind of a funny trick in this LMDE version?
Thanks,
Victor.
strange home directory name change
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
strange home directory name change
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: strange home directory name change
Yeh, I have occasionally noticed this in normal operations in a terminal as well. Don't know what causes it, but as you say pwd returns the correct info.
Cheers
Steve
Cheers
Steve
Re: strange home directory name change
What's your PS1 set to? I.e.:
Code: Select all
$ echo $PS1
Re: strange home directory name change
Hi I get this response:scotte wrote:What's your PS1 set to? I.e.:
Code: Select all
$ echo $PS1
Code: Select all
${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\]
EDIT:
------
Just to add, I also installed LMDE on my 32-bit laptop but the anomaly in question is not happening on my laptop. The 'echo $PS1' command on my laptop also gives the following:
Code: Select all
${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\]
Last edited by victorsk on Mon Dec 12, 2011 7:35 pm, edited 1 time in total.
Re: strange home directory name change
Code: Select all
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]
Re: strange home directory name change
PS1 is the prompt, and I wanted to see how it was configured. In neither case does it appear the prompt you are seeing is coming from PS1, which is curious. Both \w and \W are tokens for the directory name, but you should see '~' (tilde) when in your home directory, not 'home' (and certainly not 'hmee'!). Also, in the case for you victorsk, PS1 shows your prompt terminating with a '$', but your example shows a '#'! Very, very odd.
[EDIT] Ah-ha, here you go! http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590052
[EDIT] Ah-ha, here you go! http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590052
Re: strange home directory name change
Awesome! Thank you very much for the link, scotte. Now I can learn more about this problem