Bug 114060 - .inputrc keybindings behave unexpectedly
Summary: .inputrc keybindings behave unexpectedly
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: bash
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-01-22 00:47 UTC by Reuben Thomas
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-12-10 13:17:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Reuben Thomas 2004-01-22 00:47:43 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; Linux i686; U) Opera 7.23  [en]

Description of problem:
In the man page for bash, it says that the Meta-key combinations can 
be bound in two ways: either

Meta-<key>: function

or

"\M-<key>": function

In my experience, the first works, but the second doesn't. For 
example, try putting the following in .inputrc:

Meta-p: history-search-backward

then run bash, and type

bind -q history-search-backward

For me it says:

history-search-backward can be invoked via "?".

If I try the other form:

"\M-p": history-search-backward

I get:

history-search-backward can be invoked via "\M-p".



Version-Release number of selected component (if applicable):
2.05b-34

How reproducible:
Always

Steps to Reproduce:
1. See above.
2. 
3.
    

Additional info:

Comment 1 Tim Waugh 2004-01-22 10:58:56 UTC
I'm not sure if I understand which one is working -- for me it's the
other way round to the way you describe it.

Does it help to put 'set convert-meta On' immediately before that line?

Comment 2 Tim Waugh 2004-12-10 12:21:55 UTC
No feedback; closing.

Comment 3 Reuben Thomas 2004-12-10 12:33:23 UTC
Sorry, not sure why I never replied to your question.

As I said originally, bindings of the form:

Meta-p: function

don't work, whereas

"\M-p": function

does work. Adding "set convert-meta On" before a binding of the form "Meta-p" 
does indeed help.

Comment 4 Tim Waugh 2004-12-10 13:17:36 UTC
Reported upstream.


Note You need to log in before you can comment on or make changes to this bug.