delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/10/10:14:14

X-Spam-Check-By: sourceware.org
Message-ID: <83c75fec0607100713p37ad81aaybbcf4383c783ab51@mail.gmail.com>
Date: Mon, 10 Jul 2006 18:13:58 +0400
From: "burning shadow" <burning DOT shadow AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: RE: bash 3.x path completion problems
MIME-Version: 1.0
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

I figured out it happens only with colored command prompt. Probably, I
have some errors in ansi codes, I tried different variants, here are
some of them:

PS1='\[\033]0;\w\007\033[32m\]\u\[\033[0m\]:\[\033[33m\]\w\[\033[0m\]\$ '
PS1='\[\033[32m\]\u\[\033[0m\]:\[\033[33m\]\w\[\033[0m\]\$ '

If I remove all ansi codes from PS1, everything looks as expected.

Please, point me, what do I do wrong.. I liked my colored string so much.. :)

Dave Korn wrote:

>> The problem is that 'qqq/qq/' thing. This was never happened to bash 2.05b.
>
>   The real question is whether the trailing 'qq/' is actually there in the input buffer or if it's just an optical illusion caused by the readline bug.  What happens if you immediately press enter?
>
>   BTW with all the latest updates (including cygwin dll from cvs, but that's probably not relevant) I can't reproduce your example:
>
> dk AT rainbow /tmp/try_it> ls -la
> total 0
> drwxr-xr-x+ 4 dk Domain Users 0 May 30 17:42 .
> drwxrwxrwt+ 4 dk Users        0 May 30 17:42 ..
> drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:42 games
> drwxr-xr-x+ 5 dk Domain Users 0 May 30 17:49 qqq
> -rwx------  1 dk Domain Users 0 May 30 17:42 s
> dk AT rainbow /tmp/try_it> ls -la qqq/
> total 0
> drwxr-xr-x+ 5 dk Domain Users 0 May 30 17:49 .
> drwxr-xr-x+ 4 dk Domain Users 0 May 30 17:42 ..
> drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 162567asd
> -rw-r--r--  1 dk Domain Users 0 May 30 17:43 qqq.txtx
> drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 qwter
> drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 wqyteuqt
> dk AT rainbow /tmp/try_it> cd qqq/
> 162567asd/ qqq.txtx   qwter/     wqyteuqt/
> dk AT rainbow /tmp/try_it> cd qqq/

--
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