On 1/14/21 4:01 PM, txm wrote:
On 1/14/21 9:58 PM, Chet Ramey wrote:
On 1/11/21 11:00 AM, Thomas Mellman wrote:
But here's a bug for you, in readline:

- edit a line

- go to some character

- replace that character with another, using the "r" command.

- cruise further down the line to another character

- hit the "." repeat command

The replace operation will not be executed, but rather the "x"
operation.

This has actually improved over the years.  A while back, repeating an
earlier operation like that would get characters tangled up. Now, it
seems at least to be deterministic.
I can't reproduce this on bash-5.0 or bash-5.1.


Thank you for your response.

Perhaps I have some weird configuration error:

$ echo $BASH_VERSION
5.0.18(1)-release
$ ecxo $BSH_VERSION

In this example, I changed the "h" of echo to "x", then moved right to
the "A" of BASH and hit "."
I can't reproduce that:

$ ./bash
$ set -o vi
$ echo $BASH_VERSION
5.0.18(9)-release
$ exho $BxSH_VERSION
bash: exho: command not found

I used a similar set of editing commands. I see the same results with bash-5.1.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to