X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Nahor Subject: bash completion Date: Wed, 19 Apr 2006 09:58:09 -0700 Lines: 39 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 1.5 (Windows/20051201) X-IsSubscribed: yes 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 Hi, I have the following prompt in bash (Gentoo style): PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\w $ \[\033[00m\]' When I press to get the list of possible completion on the command line, I have some extra characters added to the display: user AT host ~ $ cd /c/ Documents and Settings/ RECYCLER/ cygwin/ tmp/ System Volume Information/ Program Files/ WINDOWS/ user AT host ~ $ cd /c// or user AT host ~ $ cd t test/ tmp/ user AT host ~ $ cd t t If I remove the last escape sequence, the first example works fine but the second displays "tt". If I remove the last two escape sequences, both work fine. The default cygwin prompt works fine but if I remove the "\n" before the "$" sign, I get similar issues. I think I saw a mention of a bash 3.0 bug like this more than a year ago but I can't google it anymore. Also this prompt works fine in Gentoo (bash 3.1.16(1)) and in Fedora Core 4 (bash 3.00.16(1)) so it would point to a bug in cygwin (or Fedora and Gentoo have a patch to fix it). Any suggestion? Jehan WinXP SP2 cygwin 1.5.19-7 bash 3.1-5 -- 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/