Regression in shells/bash (bash-4.3.0) when selecting command after reverse incremental search, the command line isn't repainted as done in previous versions

Trond Endrestøl Trond.Endrestol at fagskolen.gjovik.no
Fri Mar 7 13:51:27 UTC 2014


Hi,

Has anyone else noticed this regression in shells/bash 
(bash-4.3.0(1))?

Here's one example:

1. Type this command and hit the enter key:

bash --version

2. Hit C-r and type the letter v.

3. The command line changes to:

(reverse-i-search)`v': bash --version

4. The cursor/point is placed on the letter v in --version.

5. Hit the enter key to execute the command.

6. The command line changes into:

trond at enterprise:~>bash --

7. The output is as expected though:

GNU bash, version 4.3.0(1)-release (amd64-portbld-freebsd9.2)
Copyright (C) 2013 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.

8. Hit C-r again and type the letter v.

9. The command line changes again into:

(reverse-i-search)`v': bash --version

10. The cursor/point is still on the letter v.

11. This time hit C-e to place the cursor/point at the end of the 
command line.

12. The command line changes into:

trond at enterprise:~>bash --version

13. This time the command line appears in its entirety.

14. Hit the enter key to execute the command.

15. The output is unchanged:

GNU bash, version 4.3.0(1)-release (amd64-portbld-freebsd9.2)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>


This "regression" can be due to the contents in my .inputrc file or 
some of the other files read by bash, but I'm inclined to believe the 
bug is related to bash's use of libreadline and/or libncurses.

For sake of argument, here's my .inputrc (the comments are in 
Norwegian, sorry):

# Felles variabler
set editing-style emacs
set bell-style none

# Felles tastebindinger
del: delete-char			# Delete
"\e[H": beginning-of-line		# Home (syscons)
"\e[F": end-of-line			# End (syscons)
"\e[I": backward-word			# PageUp (syscons)
"\e[G": forward-word			# PageDown (syscons)
"\C-x\C-f": dump-functions		# C-x,C-f
"\C-x\C-v": dump-variables		# C-x,C-v
"\C-x\C-m": dump-macros			# C-x,C-m
"\C-a": beginning-of-line		# C-a
"\C-e": end-of-line			# C-e

$if term=xterm
"\e[3~": delete-char			# Delete (xterm)
"\e[7~": beginning-of-line		# Home (xterm)
"\e[8~": end-of-line			# End (xterm)
"\e[5~": backward-word			# PageUp (xterm)
"\e[6~": forward-word			# PageDown (xterm)
$endif

$if term=vt100
"\e[2~": beginning-of-line		# Home (vt100)
"\e[5~": end-of-line			# End (vt100)
"\e[3~": backward-word			# PageUp (vt100)
"\e[6~": forward-word			# PageDown (vt100)
$endif

$if term=screen
"\e[3~": delete-char			# Delete (screen)
"\e[H": beginning-of-line		# Home (screen)
"\e[F": end-of-line			# End (screen)
"\e[I": backward-word			# PageUp (screen)
"\e[G": forward-word			# PageDown (screen)
"\e[1~": beginning-of-line		# Home (screen)
"\e[4~": end-of-line			# End (screen)
"\e[5~": backward-word			# PageUp (screen)
"\e[6~": forward-word			# PageDown (screen)
$endif

$if term=sun
"\e[249z": delete-char			# Delete (sun)
"\e[214z": beginning-of-line		# Home (sun)
"\e[220z": end-of-line			# End (sun)
"\e[216z": backward-word		# PageUp (sun)
"\e[222z": forward-word			# PageDown (sun)
$endif

# spesialvalg for bash
$if BASH
set comment-begin #
#set completion-ignore-case on
set completion-query-items 999999999
set horizontal-scroll-mode on
set mark-directories on
#set mark-modified-lines on
set print-completions-horizontally on
set show-all-if-ambiguous on
set visible-stats on

"\e[P": "ls\r"				# F4 (syscons)
"\e[Q": "la\r"				# F5 (syscons)
"\e[R": "ll\r"				# F6 (syscons)
"\e[b": "startx\r"			# Shift-F4 (syscons)
"\e[c": "mc\r"				# Shift-F5 (syscons)
"\e[V": "x\r"				# F10 (syscons)
"\C-x2": "25l\r"			# C-x 2
"\C-x5": "50l\r"			# C-x 5
"\C-x6": "60l\r"			# C-x 6
"\C-x\C-x": "lock -n -p\r"		# C-x C-x

$if term=xterm
"\e[15~": "mc\r"			# (Shift-)F5 (xterm)
"\e[17~": "ll\r"			# (Shift-)F6 (xterm)
"\e[21~": "x\r"				# F10 (xterm)
$endif

$if term=vt100
"\e[14~": "ls\r"			# F4 (vt100)
"\e[15~": "la\r"			# F5 (vt100)
"\e[17~": "ll\r"			# F6 (vt100)
"\e[28~": "mc\r"			# Shift-F5 (vt100)
"\e[21~": "x\r"				# F10 (vt100)
$endif

$if term=screen
"\e[21~": "x\r"				# F10 (screen)
"\e[h": "x\r"				# F10 (screen)
$endif

$if term=sun
"\e[233z": "x\r"			# F10 (sun)
$endif
$endif

# Spesialvalg for R
$if R
set comment-begin #
set horizontal-scroll-mode on
$endif

# Spesialvalg for psql
$if PSQL
set comment-begin --
set horizontal-scroll-mode on
$endif


-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+


More information about the freebsd-questions mailing list