Mail Archives: cygwin/2006/03/30/23:34:11
-----BEGIN PGP SIGNED MESSAGE-----
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 ebb9 AT byu DOT net
volunteer cygwin 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
iD8DBQFELLE184KuGfSFAYARAhv1AJ9duu2UKM8eFA1Z4YpIwndilO10fwCdGm/o
CpuMjelJmQGJDzED/AWTAXA=
=w1tW
-----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/
- Raw text -