bug-bash
[Top][All Lists]
Advanced

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

Re: core/loop vi mode when '.' used to repeat a replace


From: Chet Ramey
Subject: Re: core/loop vi mode when '.' used to repeat a replace
Date: Sun, 05 Mar 2006 22:26:39 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

address@hidden wrote:

> Bash Version: 3.1
> Patch Level: 11
> Release Status: release
> 
> Description:
>       I've noticed that if I use ',' to repeat a substitution
>       in vi-mode, bash either dumps core or goes into a hard
>       loop.
> 
> Repeat-By:
>       Any command should do, I used this now as I was filling out
>       this form:
> 
>         $ set -o vi
>         $ date; date; date
>         Fri Mar  3 12:53:06 CST 2006
>         Fri Mar  3 12:53:06 CST 2006
>         Fri Mar  3 12:53:07 CST 2006
> 
>       Now, with vi-mode in effect, type 'ESC -' to bring up the
>       "date..." command, type 'f e' to move the cursor to the
>       first 'e', type 'r e' to replace the 'e' with 'e', type ';'
>       to move the cursor to the second 'e', type '.' to repeat
>       the previous substitution.
> 
>       For me, bash goes into a hard loop at this point and I need
>       to 'kill -9' the process.

I can't reproduce it.  Can you run this in a debugger and get a
stack trace of the point it goes into the hard loop or core dumps?
(Or anyone else, if they can produce it as well.)  Thanks.

Chet

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




reply via email to

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