Bug 139384

Summary: Certain .inputrc settings ignored
Product: [Fedora] Fedora Reporter: Kyle Bateman <kyle>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-16 12:14:20 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 Kyle Bateman 2004-11-15 18:21:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Description of problem:
In my .inputrc file, I redefine many of the key bindings.  But, C-V
and C-U seem to be getting re-bound back to standard emacs binding
instead of honoring the settings I have in .inputrc.

Fedora 1 worked fine on this .inputrc file.  Fedora 3 exhibits the
problem.

I can reparse the .inputrc file (C-X C-R) and my custom settings will
be temporarily honored for command line editing.  But as soon as I hit
Enter, these two keys (at least) get changed back to standard emacs
and bash forgets my settings from .inputrc.


Version-Release number of selected component (if applicable):
bash-3.0-18

How reproducible:
Always

Steps to Reproduce:
1. Create ~/.inputrc file containing:
"\C-v": forward-word
"\C-u": beginning-of-line

2.export INPUTRC=

3.bash

4.try editing on the command line.  Does C-U erase to beginning of
line (emacs)?  Or does it just move to the beginning of line (.inputrc
setting)?

5. Re-parse .inputrc (C-X C-R).  Test line editing again.

6. Hit Enter.  Test line editing again.

    

Actual Results:  The custom settings are not recognized until I
re-parse .inputrc.  Then they are retained only until I hit Enter. 
Then they are lost again.


Expected Results:  .inputrc settings should be persistent in the session.


Additional info:

I haven't been able to figure out a workaround.

Comment 1 Tim Waugh 2004-11-16 12:14:20 UTC
The terminal settings are re-applied to the key bindings
(intentionally) each time readline is invoked, and you probably have
^U set as the KILL character.  Use 'stty kill [key]' to reassign that.

In other words, the terminal settings get priority over the readline
keybindings.