bash (all versions) screws up display when a multiply is given

2022-05-04 Thread n952162

In vi mode

if you enter, .e.g. 2f) (put the cursur on the second following
occurance of a right paren), it works, I think, "virtually", but the
displayed line is all garbled.  You can keep editting and create a
correct command, but only blindly.




Re: bash (all versions) screws up display when a multiply is given

2022-05-04 Thread n952162

Please disregard that ... there's something there, but I haven't
distilled it yet.

On 5/4/22 9:06 AM, n952162 wrote:

In vi mode

if you enter, .e.g. 2f) (put the cursur on the second following
occurance of a right paren), it works, I think, "virtually", but the
displayed line is all garbled.  You can keep editting and create a
correct command, but only blindly.





Re: bash (all versions) screws up display when a multiply is given

2022-05-04 Thread Greg Wooledge
On Wed, May 04, 2022 at 09:11:01AM +0200, n952162 wrote:
> Please disregard that ... there's something there, but I haven't
> distilled it yet.
> 
> On 5/4/22 9:06 AM, n952162 wrote:
> > In vi mode
> > 
> > if you enter, .e.g. 2f) (put the cursur on the second following
> > occurance of a right paren), it works, I think, "virtually", but the
> > displayed line is all garbled.  You can keep editting and create a
> > correct command, but only blindly.

The most likely cause of garbled/moving text in your shell input is
a prompt that has terminal escape sequences (or other non-printing
characters) which are not correctly protected by \[ \] .

https://mywiki.wooledge.org/BashFAQ/053