bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect handling of invisible characters in prompt string


From: Mike Frysinger
Subject: Re: incorrect handling of invisible characters in prompt string
Date: Wed, 3 May 2006 21:42:07 -0400
User-agent: KMail/1.9.1

to dig up this thread yet again :)
http://lists.gnu.org/archive/html/bug-bash/2006-03/msg00006.html

a user reported this with bash-3.0.17 with a good test case:
http://bugs.gentoo.org/130955

and i'm able to reproduce this here by setting my PS1:
PS1='$(echo "Strange \[\e[0;32m\]Prompt\[\e[0m\] ")'
then holding down say 'f' until my cmdline wraps around, then holding 
backspace to delete the letters until it wraps back up to one line and 
triggers a garbaled prompt:
;32mPrompt fffffffffffffffffffff

the proposed hack:
http://lists.gnu.org/archive/html/bug-bash/2006-03/msg00005.html

seems to work for this test case ...
-mike




reply via email to

[Prev in Thread] Current Thread [Next in Thread]