[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Strange bash prompt



On Wed, 22 Sep 1999, Atul Chitnis wrote:

>> > I noticed a strange behaviour of bash regrding the prompt. I have set
>> > PS1='\h:\w$ '
>
>pcqupdt uses this line:
>
>PS1="[\u@\h \W]\\$ "
>
>which does not produce this problem.
>

The problem seems to be in the particular version of bash. Here is the
copy of the mail from Mr. Keith Harbaugh<harbaugh@xxxxxxxxxxxxxxxxxxx>

<quote>

Here's your test run first with bash-2.03, then with bash-2.01:
        euler:~$ echo $PS1
        \h:\w$
        euler:~$ cd /var
        euler:/var$ cd ../usr
        euler:/usr$ echo $BASH_VERSION
        2.03.0(1)-release
        euler:/usr$ ls -l /bin/bash*
        -rwxr-xr-x   1 root      1582874 May 12 06:37 /bin/bash
        -rwxr-xr-x   1 root       426980 Oct 20  1998 /bin/bash-2.01.1
        -rwxr-xr-x   1 root      1582874 May 12 06:37 /bin/bash-2.03.0

        euler:/usr$ /bin/bash-2.01.1
        bash-2.01.1-2.01$  PS1='\h:\w$ '
        euler:/usr$ cd
        euler:~$ echo $PS1
        \h:\w$
        euler:~$ cd /var
        euler:/var$ cd ../usr
        euler://usr$ echo $BASH_VERSION
        2.01.1(1)-release

The bash-2.01 was the slink release from debian;
the bash-2.03 was built from sources obtained from ftp.gnu.org,
using gcc-2.7.2.3 on a slink system.

</quote>

Thanks,

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@xxxxxxxxxxxxxxxxxxxx
*******************************************



- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------

End of Linux India Digest V2 #228
*********************************

--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxxxxxxxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.