From owner-freebsd-questions Sat Oct 16 9:12:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp11.bellglobal.com (smtp11.bellglobal.com [204.101.251.53]) by hub.freebsd.org (Postfix) with ESMTP id D269314CFB for ; Sat, 16 Oct 1999 09:12:39 -0700 (PDT) (envelope-from a.genkin@utoronto.ca) Received: from main.wgaf.net (HSE-TOR-ppp22851.sympatico.ca [209.226.71.141]) by smtp11.bellglobal.com (8.8.5/8.8.5) with ESMTP id MAA05810 for ; Sat, 16 Oct 1999 12:16:32 -0400 (EDT) Received: from antipode by main.wgaf.net with local (Exim 2.05 #1 (Debian)) id 11cXYF-0005Rm-00; Sat, 16 Oct 1999 13:23:27 -0400 To: freebsd-questions@freebsd.org Subject: Re: bash's "\$" in PS1 doesn't work right References: <87g0zbxmdg.fsf@main.wgaf.net> X-Home-Page: http://wgaf.dyndns.org Organization: Wgaf From: Arcady Genkin Date: 16 Oct 1999 13:23:27 -0400 In-Reply-To: Arcady Genkin's message of "Sat, 16 Oct 1999 13:10:19 -0400" Message-ID: <87aepjxlrk.fsf@main.wgaf.net> Lines: 22 User-Agent: Gnus/5.070097 (Pterodactyl Gnus v0.97) XEmacs/21.1 (Biscayne) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > "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