From owner-freebsd-questions Sat Oct 16 14:18:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dt050n71.san.rr.com (dt050n71.san.rr.com [204.210.31.113]) by hub.freebsd.org (Postfix) with ESMTP id 936F414A09 for ; Sat, 16 Oct 1999 14:18:33 -0700 (PDT) (envelope-from Doug@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt050n71.san.rr.com (8.9.3/8.8.8) with ESMTP id OAA67818; Sat, 16 Oct 1999 14:18:28 -0700 (PDT) (envelope-from Doug@gorean.org) Message-ID: <3808EBA4.B725C5FC@gorean.org> Date: Sat, 16 Oct 1999 14:18:28 -0700 From: Doug Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 4.0-CURRENT-0927 i386) X-Accept-Language: en MIME-Version: 1.0 To: Arcady Genkin Cc: freebsd-questions@freebsd.org Subject: Re: bash's "\$" in PS1 doesn't work right References: <87g0zbxmdg.fsf@main.wgaf.net> <87aepjxlrk.fsf@main.wgaf.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Arcady Genkin wrote: > > Arcady Genkin 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