delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/19/12:58:29

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Nahor <nahor AT bravobrava DOT com>
Subject: bash completion
Date: Wed, 19 Apr 2006 09:58:09 -0700
Lines: 39
Message-ID: <e25q6e$92q$1@sea.gmane.org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5 (Windows/20051201)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <TAB> 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/<tab>
   Documents and Settings/    RECYCLER/                  cygwin/
   tmp/                       System Volume Information/ Program Files/ 

   WINDOWS/
   user AT host ~ $ cd /c//

or
   user AT host ~ $ cd t<tab>
   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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019