Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
$HOME not listed as ~
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pmj
n00b
n00b


Joined: 06 Jun 2002
Posts: 27
Location: Newfoundland, Canada

PostPosted: Thu Jun 13, 2002 4:15 pm    Post subject: $HOME not listed as ~ Reply with quote

hello,

Strange thing here. My bash prompt displays the full path to my home directory, and not ~. My .bashrc contains the following:
PS1='[\u@\h - \w] '
so I would expect
[pmj@sarlacc - ~]
when in /home/pmj, but instead it reads
[pmj@sarlacc - /home/pmj].

Anyone with any insight?
_________________
pmj / [a]orange
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Thu Jun 13, 2002 6:47 pm    Post subject: Reply with quote

Well this is not the answer, but well I just wanted to tell you:
Quote:
\w the current working directory
\W the basename of the current working direc­
tory


Cya lX.
_________________
"Remember there's a big difference between kneeling down and bending over.", Frank Zappa
Back to top
View user's profile Send private message
pmj
n00b
n00b


Joined: 06 Jun 2002
Posts: 27
Location: Newfoundland, Canada

PostPosted: Sun Jun 16, 2002 8:41 pm    Post subject: Reply with quote

not to answer myself, but if anyone else ran into anything similar, I found out the answer:

my home directory in the passwd file was /home/pmj/ and not /home/pmj. The ending / made all the difference!
_________________
pmj / [a]orange
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum