From owner-freebsd-questions Sat Oct 16 8:59:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp13.bellglobal.com (smtp13.bellglobal.com [204.101.251.52]) by hub.freebsd.org (Postfix) with ESMTP id B635214CA3 for ; Sat, 16 Oct 1999 08:59:27 -0700 (PDT) (envelope-from a.genkin@utoronto.ca) Received: from main.wgaf.net (HSE-TOR-ppp22851.sympatico.ca [209.226.71.141]) by smtp13.bellglobal.com (8.8.5/8.8.5) with ESMTP id MAA28694 for ; Sat, 16 Oct 1999 12:01:28 -0400 (EDT) Received: from antipode by main.wgaf.net with local (Exim 2.05 #1 (Debian)) id 11cXLX-0005RA-00; Sat, 16 Oct 1999 13:10:19 -0400 To: freebsd-questions@freebsd.org Subject: bash's "\$" in PS1 doesn't work right X-Home-Page: http://wgaf.dyndns.org Organization: Wgaf From: Arcady Genkin Date: 16 Oct 1999 13:10:19 -0400 Message-ID: <87g0zbxmdg.fsf@main.wgaf.net> Lines: 31 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 Hi all: I have the following in .bashrc: export PS1="\h:\w\$ " However, the "\$" doesn't result in "#" for root. I get the "$" sign. "set" reports UID=0: BASH=/usr/local/bin/bash BASH_VERSINFO=([0]="2" [1]="03" [2]="0" [3]="1" [4]="release" [5]="i386--freebsd3.3") BASH_VERSION='2.03.0(1)-release' EUID=0 PS1='\h:\w$ ' PS2='> ' PS4='+ ' UID=0 USER=root But I get: door:~$ whoami root Any ideas? I compiled bash from the ports collection, updated yesterday. Thanks, -- 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