bug-bash
[Top][All Lists]
Advanced

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

Re: bug-bash Digest, Vol 218, Issue 13


From: Chet Ramey
Subject: Re: bug-bash Digest, Vol 218, Issue 13
Date: Thu, 14 Jan 2021 16:12:53 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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