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: Chet Ramey
Subject: Re: incorrect handling of invisible characters in prompt string
Date: Fri, 05 May 2006 22:04:50 -0400
User-agent: Thunderbird 1.5.0.2 (Macintosh/20060308)

Mike Frysinger wrote:
> 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

Yes, that's a good test case, and I was able to reproduce it.  It
will be fixed in the next version.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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