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