X-Spam-Check-By: sourceware.org Message-ID: <44BF7796.4000802@byu.net> Date: Thu, 20 Jul 2006 06:31:18 -0600 From: Eric Blake User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: cygwin AT cygwin DOT com, chris AT keristor DOT net Subject: Re: bash filename completion character bug References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Chris Croughton on 7/19/2006 10:48 PM: > > When I do filename completion with TAB I get an extra character on the > name: > > ~$ ba[TAB] > BA31INSTALL.LOG basename.exe bash.exe bashdb > batt.dll > banner.exe basesrv.dll bashbug batmeter.dll > ~$ baa > > This seems to be purely a visual artefact, the actual characters in the > input buffer are still correct but all of the editing is then wrong (so > doing backspace twice in the above will leave the 'b' visible but not in > the input buffer). This is a repeatedly-reported bug in readline 5.0/5.1's handling of single-line prompts in the face of invisible characters when compiled for multi-byte handling. I don't know the root cause, but the upstream maintainer, Chet Ramey, claims that he has fixed it for readline 5.2. He currently has a beta test underway, and I am hoping to package readline 5.2 in the near future to see if his claim holds any water (he had also claimed to fix it for 5.1, but obviously hadn't). In the meantime, workarounds are to change your PS1 to be multi-line, give up color sequences, recompile readline to avoid multi-byte characters, or live with it until at least the next release. - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net volunteer cygwin bash/readline maintainer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEv3eW84KuGfSFAYARAv3RAJsE/Xh2WB7B65Vo1Rhy5k0cjxGfhACg0aoI t7vBsDiowBZ4ceOHU2iFh3w= =lPdi -----END PGP SIGNATURE----- -- 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/