bug-bash
[Top][All Lists]
Advanced

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

Re: Bash 3.0 / Readline 5.0: broken prompt handling


From: Chet Ramey
Subject: Re: Bash 3.0 / Readline 5.0: broken prompt handling
Date: Tue, 3 Aug 2004 15:18:18 -0400

> Unfortunately, the second (actually just theoretical)
> PS1="foo\rbar\rquux" input line prompt-overwriting bug is still
> existing, but this IMHO doesn't matter as much as the first bug. If you
> will investigate again I'm sure you also find and fix this one...

It's always been like this.  The prompt display code has never interpreted
`\r', including its effect on the cursor position.

PS1="\[foo\rbar\r\]quux"

works as expected and intended.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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