bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with PS1 special characters between \[ and \]


From: Chet Ramey
Subject: Re: Trouble with PS1 special characters between \[ and \]
Date: Fri, 05 Nov 2010 23:30:34 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 10/30/10 5:13 PM, Lluís Batlle i Rossell wrote:
> Hello,
> 
> I don't think this problem is related to any recent bash version only. I've 
> seen
> this since years I think.
> 
> Nevertheless I'm using GNU bash, version 4.0.17(1)-release
> (x86_64-unknown-linux-gnu) now.
> 
> My PS1 uses the "Change window title" sequence, to set the xterm window title 
> to
> something close to the prompt text. Hence my PS1 is:
> 
> PS1='\[\033]2;\h:\u:\w\007\]\n\[\033[1;address@hidden:\w]\$\[\033[0m\] '

I can't reproduce this using bash-4.1 on Mac OS X using Terminal or
xterm.  Please try bash-4.1 and let me know if that works.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]