Strange bash prompt
Hi,
I noticed a strange behaviour of bash regrding the prompt. I have set
PS1='\h:\w$ '. With that I get both the host name and the working
directory as my shell prompt. Yesterday I noticed a strange behaviour
accidentally. The sequence is given below:
mysxrd:~$ cd /var
mysxrd:/var$ ---- prompt is correct
mysxrd:/var$ cd ../usr
mysxrd://usr$ ---- prompt has 2 slashes!
I am surprised by this behaviour. Is it expected? The bash version is:
GNU bash, version 2.01.1(1)-release (i486-pc-linux-gnu)
TIA,
sridhar
********************************************
Sridhar M. A.
Department of Physics
University of Mysore, Manasagangotri
Mysore 570 006, INDIA
Tel: +91-821-516133
Fax: +91-821-516133
E-mail: mysxrd@giasbg01.vsnl.net.in
*******************************************
Reply to: