Date: 16 Oct 1999 13:10:19 -0400 From: Arcady Genkin <a.genkin@utoronto.ca> To: freebsd-questions@freebsd.org Subject: bash's "\$" in PS1 doesn't work right Message-ID: <87g0zbxmdg.fsf@main.wgaf.net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87g0zbxmdg.fsf>