delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/23/18:58:16

X-Spam-Check-By: sourceware.org
Message-ID: <43D56D86.23E68BCA@dessent.net>
Date: Mon, 23 Jan 2006 15:57:58 -0800
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Prompt issue within cygwin
References: <f894c8ac0601230831n33d75defj8456f73bb341f46c AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601231138410 DOT 18707 AT access1 DOT cims DOT nyu DOT edu> <f894c8ac0601230853v12812aaco8e92f875a717fac AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601231154210 DOT 18707 AT access1 DOT cims DOT nyu DOT edu> <f894c8ac0601231035j6703639h91ce8ea08bcb0ea9 AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601231426390 DOT 27934 AT access1 DOT cims DOT nyu DOT edu> <f894c8ac0601231138m61563d4ap5b88aa41cf247924 AT mail DOT gmail DOT com> <f894c8ac0601231450m679d19b2u7a01097d0bcd037b AT mail DOT gmail DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0601231808510 DOT 27934 AT access1 DOT cims DOT nyu DOT edu>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

Igor Peshansky wrote:

> There is a prompt bug in bash that causes it to miscount the number of
> displayed characters.  One workaround was to append '\[\]' to PS1.  Also,
> a good habit to get into is to use single quotes in the shell when some
> value contains backslashes.

Yes, this bug has been reported and investigated but it seems to be a
real heisenberg because even the people that are familiar with
libreadline still can't seem to figure out the complex interactions
going on.

You might try playing around with different versions of bash/readline, I
seem to recall that it wasn't present in 3.1 or something like that.

Brian

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