Bug 177808

Summary: Bash not picking up customizations from /etc/inputrc
Product: [Fedora] Fedora Reporter: Steven Usdansky <usdanskys>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED UPSTREAM QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-17 10:48:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steven Usdansky 2006-01-14 14:12:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060103 Fedora/1.5-4 Firefox/1.5

Description of problem:
I've been adding the following lines to the end of my /etc/inputrc file since before FC-1 came out, and they have always worked as expected. I type the first letter of a command, hit the up arrow key, and the most recent command in my history list starting with that letter appears on the command line. Additional presses of the up arrow take me farther back in the history list (to commands starting with the same first letter).

 # for history list navigation with up/down arrows
 "\M-[A":history-search-backward
 "\M-[B":history-search-forward

It worked fine in bash-3.0-36 (which I just reinstalled). It does not work at all in bash 3.1-5.

Version-Release number of selected component (if applicable):
bash-3.1-5

How reproducible:
Always

Steps to Reproduce:
1. Upgrade bash from 3.0-36 to 3.1-5
2. add the above three lines to /etc/inputrc
3. type the command "ls" and press the enter key
4. type the command "cat /etc/inputrc" and press the enter key
5. type the letter "l" and press the up-arrow key
  

Actual Results:  The command line shows "cat /etc/inputrc"

Expected Results:  The command line shows "ls"

Additional info:

Comment 1 Tim Waugh 2006-01-17 10:34:53 UTC
FWIW, '"\e[A": history-search-backward' works.

I'll ask about this upstream.

Comment 3 Steven Usdansky 2006-01-18 12:31:57 UTC
Thanks, Tim. I've made the changes to my inputrc file (but still don't
understand the change from '\M-' to '\e'