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: tail after tab completion in prompt

I noticed there was a new version of readline. Does it fix this issue?

On 3/31/06, Eric Blake <> wrote:
Hash: SHA1

According to William Xue on 3/29/2006 11:06 PM:
> Hi,
> Please let me describe the issue for you:

Issues like this have been reported in the past, but this is the first
report against readline-5.1-5.

> After set the PS1 in .bashrc to :
> ---8<--------------------------------------------->8---
> PS1="\[\e]2;\w  --  \s\V@\l@\H  hangsps:\j    \d
> \t\a\]\[\e[31;1m\][\[\e[36;1m\]\u@\h
> \[\e[33;1m\]\W\[\e[31;1m\]]\[\e[34;1m\]\[\e[32;1m\]\$ \[\e[37;1m\]"
> ---8<--------------------------------------------->8---
> If type "ls /usr/src" twice, it will show "ls /usr/src/usr/src".

OK, I'm seeing some weird behavior as well; readline-5.1-5, $TERM set to
xterm in an rxvt window.  This sounds like yet another case of the weird
prompt display when you use a one-line prompt with invisible characters,
and I have not yet been able to track down what is going wrong in
readline.  I'll ask upstream to see if Chet has any ideas what is going wrong.

> Is there something wrong in the PS1? And how can I fix this issue?

As a workaround, avoid invisible characters (but lose all the cool colors
in your prompt), use a prompt that expands to multiple lines (for example,
the default prompt in cygwin's /etc/profile).  People have also reported
that recompiling readline to disable multibyte characters will help,
although I am reluctant to do that for the cygwin release because I don't
know what else that would impact.  Otherwise, I would certainly appreciate
help from anyone in debugging the issue.

- --
Life is short - so eat dessert first!

Eric Blake   
volunteer cygwin readline maintainer
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

-- Unsubscribe info: Problem reports: Documentation: FAQ:

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