This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash filename completion character bug


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]