/etc/inputrc specifies \e[5C and \e[5D for backward-word and forward-word when these binding is usually maped for ESCAPE+cursor_left and ESCAPE+cursor_right. When using any of those combinations, instead of the cursor being positioned at the beginning/end of the previous/following word, you get an " [D" or " [C" in your command line. Reproducible: Always Steps to Reproduce: 1.Login with bash shell (which uses readline) 2.type a few words 3.try to go to the previous word by pressing ESCAPE+cursor_left Actual Results: Instead of going backwards, " [D" appears. Expected Results: Position the cursor at the beginning of the word. You can solve it just by modifying /etc/inputrc like this: ORIGINAL FILE: "\e[5C": forward-word "\e[5d": backward-word PATCHED FILE: "\e\e[5C": forward-word "\e\e[5D": backward-word
*** Bug 53771 has been marked as a duplicate of this bug. ***
what terminal ? what version of bash ? what version of readline ? depending on the terminal i use (eterm/xterm/konsole/aterm), i needed to add different lines, but none were '\e\e[5C' or '\e\e[5D' ...
just checked with debian and they have this: # "\e\e[C": forward-word # "\e\e[D": backward-word
it'll be in baselayout-1.11.10+