Date: Sat, 16 Oct 1999 14:18:28 -0700 From: Doug <Doug@gorean.org> To: Arcady Genkin <a.genkin@utoronto.ca> Cc: freebsd-questions@freebsd.org Subject: Re: bash's "\$" in PS1 doesn't work right Message-ID: <3808EBA4.B725C5FC@gorean.org> References: <87g0zbxmdg.fsf@main.wgaf.net> <87aepjxlrk.fsf@main.wgaf.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Arcady Genkin wrote: > > 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. > OK. I solved it by changing the double quotes into single quotes in > .bashrc. That's the appropriate solution, for some fairly arcane reasons. Take a look at http://freebsd.simplenet.com/Bash-prompts.txt if you're interested in more info. Good luck, Doug -- "Stop it, I'm gettin' misty." - Mel Gibson as Porter, "Payback" 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?3808EBA4.B725C5FC>