Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: Bash 2.05 vs. 3.0 Prompt Behavior Date: Thu, 7 Jul 2005 16:52:25 -0400 Lines: 24 Message-ID: <1iwqivjhclfnd.6v1kcb258ulp$.dlg@40tude.net> References: <42CD7838 DOT 4070107 AT edgedynamics DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: 40tude_Dialog/2.0.15.1 (c3ce1f44.200.372) X-Archive: Yes X-IsSubscribed: yes > I updated my Cygwin installation this morning and picked up the new > version of Bash (3.0-7). When I started a new shell (running under > rxvt) I was suprised to see that my prompt displayed differently than > before the upgrade. I use the following prompt > > PS1='\[\e]0;${WINDOW_TITLE}\u@\h \w\a\]\u@\h\$ ' > > The difference is the display of the portion that is not put in the > title bar, with Bash 2.05 the prompt was (ignoring the tick marks, which > are only included to the trailing whitespace) 'pds AT whangarei$ ', while > with Bash 3.0 the prompt is 'pds AT whangarei$ '. Note the extra space at > the end with 3.0. If I remove the space, the dollar sign is doubled, > i.e. 'pds AT whangarei$$', if I replace the last space in the PS1 value > with someother character, then that character is doubled. > > I do not see this behavior if I use the default value of PS1 from > /etc/profile. > > I have tried googling 'bash 3.0 prompt' and did not find any obvious > help. Has anybody else seen this behavior? The 'extra space in the prompt' bug is well known; see e.g. http://sources.redhat.com/ml/cygwin/2005-04/msg00325.html and http://sourceware.org/ml/cygwin-apps/2005-04/msg00036.html. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/