Top, winecfg and possibly other programs break custom bashrc bindings

Bug #1133507 reported by TomasHnyk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce (in terminal):
1. bind '"\e[A": history-search-backward'
2. ls bla
3. echo bla
4. ls ble
5. write "l" and pres upper arrow: ls ble and upon another press ls bla should appear (sidesteping echo bla)
6. run top and close it
7. repeat steps 2-5
Result:
echo is not skippen when listing history.

Expected result:
echo is skippend when doing hisotry-search-backword.

Tested in gnome-terminal, xterm, on my account and on a guest account all on 12.10.

My -bashrc on top of stok ubuntu .bashrc is this:
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
# that behaviour is for pageup and pagedown
bind '"\e[5~": previous-history'
bind '"\e[6~": next-history'

# show possibilities if tab ambigious
set show-all-if-ambiguous on
# ignore case when completing, lets see how it works
set completion-ignore-case on

shopt -s cdspell
HISTSIZE=10000
HISTCONTROL=ignoredups
HISTFILESIZE=10001
HISTTIMEFORMAT="%h/%d - %H:%M:%S "
shopt -s histappend
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.