Hi,

I have the following prompt in bash (Gentoo style):
PS1='\[\033[01;[EMAIL PROTECTED] \[\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:

  [EMAIL PROTECTED] ~ $ cd /c/<tab>
  Documents and Settings/    RECYCLER/                  cygwin/
tmp/ System Volume Information/ Program Files/
  WINDOWS/
  [EMAIL PROTECTED] ~ $ cd /c//

or
  [EMAIL PROTECTED] ~ $ cd t<tab>
  test/ tmp/
  [EMAIL PROTECTED] ~ $ 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/

Reply via email to