Skip site navigation (1)Skip section navigation (2)
Date:      16 Oct 1999 13:23:27 -0400
From:      Arcady Genkin <a.genkin@utoronto.ca>
To:        freebsd-questions@freebsd.org
Subject:   Re: bash's "\$" in PS1 doesn't work right
Message-ID:  <87aepjxlrk.fsf@main.wgaf.net>
In-Reply-To: Arcady Genkin's message of "Sat, 16 Oct 1999 13:10:19 -0400"
References:  <87g0zbxmdg.fsf@main.wgaf.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Arcady Genkin <a.genkin@utoronto.ca> writes:

> I have the following in .bashrc:
> export PS1="\h:\w\$ "
> 
> However, the "\$" doesn't result in "#" for root. I get the "$" sign.

> "set" reports:
> PS1='\h:\w$ '

Now that I read my own message, I noticed that "set" reports PS1
wrong, without backslash before the dollar sign. That must be the
reason...

OK. I solved it by changing the double quotes into single quotes in
.bashrc.

Sorry for the noise.
-- 
Arcady Genkin                                http://wgaf.dyndns.org
"'What good is my pity? Is not the pity the cross upon which he who
loves man is nailed?..'" (F. Nietzsche)


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87aepjxlrk.fsf>