bash completion

Nahor nahor@bravobrava.com
Wed Apr 19 17:05:00 GMT 2006


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@host ~ $ cd /c/<tab>
   Documents and Settings/    RECYCLER/                  cygwin/
   tmp/                       System Volume Information/ Program Files/ 

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

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



More information about the Cygwin mailing list