Hi, On Wed, Feb 16, 2011 at 08:43 PM PST, Clark J. Wang wrote: CJW> For example, in vi insert mode, I first enter a command like this: CJW> CJW> # hello world CJW> CJW> Then I press ESC and type cc, the cursor just moves to the beginning (under CJW> the char `h') and the whole line is not emptied. If I type more chars after CJW> cc, only the first `h' char is replaced and following `ello world' keeps CJW> unchanged. Note that other vi mode commands like cw and c$ work fine.
I noticed a similar phenomenon when the vi command 'dd' is entered. Bash no longer deletes the entire line, it just moves the cursor to the first char. I'm using readline v6.2 and bash v4.2 on RHEL5.6 . Regards, -- Mun CJW> I'm using Debian 6.0 (i686) and here's some of my system info: CJW> CJW> # bash --version CJW> GNU bash, version 4.2.0(1)-release (i686-pc-linux-gnu) CJW> Copyright (C) 2011 Free Software Foundation, Inc. CJW> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html CJW> > CJW> CJW> This is free software; you are free to change and redistribute it. CJW> There is NO WARRANTY, to the extent permitted by law. CJW> # dpkg -l | grep -E 'readline|ncurses' CJW> ii libncurses5 5.7+20100313-5 shared CJW> libraries for terminal handling CJW> ii libncurses5-dev 5.7+20100313-5 CJW> developer's libraries and docs for ncurses CJW> ii libncursesw5 5.7+20100313-5 shared CJW> libraries for terminal handling (wide character support) CJW> ii libreadline5 5.2-7 GNU CJW> readline and history libraries, run-time libraries CJW> ii libreadline6 6.1-3 GNU CJW> readline and history libraries, run-time libraries CJW> ii ncurses-base 5.7+20100313-5 basic CJW> terminal type definitions CJW> ii ncurses-bin 5.7+20100313-5 CJW> terminal-related programs and man pages CJW> ii ncurses-term 5.7+20100313-5 CJW> additional terminal type definitions CJW> ii readline-common 6.1-3 GNU CJW> readline and history libraries, common files CJW> # ldd /usr/local/bash-4.2.0/bin/bash CJW> linux-gate.so.1 => (0xb7730000) CJW> libncurses.so.5 => /lib/libncurses.so.5 (0xb76ec000) CJW> libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb76e8000) CJW> libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb75a1000) CJW> /lib/ld-linux.so.2 (0xb7731000) CJW> # CJW> CJW> By the way I don't understand why there's no libreadline in the output of CJW> `ldd bash'. Anyone can explain? CJW> CJW> -- CJW> Clark