bug-bash
[Top][All Lists]
Advanced

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

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


From: dave
Subject: core/loop vi mode when '.' used to repeat a replace
Date: Fri, 3 Mar 2006 12:58:37 -0600 (CST)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.8
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd4.8' -DCONF_MACHTYPE='i386-unknown-freebsd4.8' 
-DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib   -O2  -march=pentiumpro
uname output: FreeBSD base686.home.org 4.8-RELEASE FreeBSD 4.8-RELEASE #14: Thu 
Sep  8 12:45:15 CDT 2005     root@base686.home.org:/usr/src/sys/compile/base686 
 i386
Machine Type: i386-unknown-freebsd4.8

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.





reply via email to

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