Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96256 - bash ignores parts of .inputrc
Summary: bash ignores parts of .inputrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-16 01:08 UTC by Jakob Hunsballe
Modified: 2006-11-11 00:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Hunsballe 2005-06-16 01:08:09 UTC
The following mapping in ~/.inputrc stopped working when "upgrading" to
app-shells/bash-3.0-r11:

"\C-w": backward-kill-word

(different word boundaries (e.g. / . ) than the default whitespace.
Other mappings seem to be applied correctly. The BASH 'bind' command also
fails mapping "\C-w". Only trick to make it work isto re-read setup in BASH
by using CTRL-x,CTRL-r manually.

Reproducible: Always
Steps to Reproduce:
1. Add to ~/.inputrc this line :
"\C-w": backward-kill-word

2. start new bash shell (bash-3.0-r11)

3. check that CTRL-w does not behave correctly: backward-kill-word bahaves as
backward-delete-word.

4. "type" CTRL-x CTRL-r (re-read config) and check that CTRL-w now behaves as it
should
Actual Results:  
binding CRTL-w to backward-kill-word, makes it delete backwards, considering
only whitespaces as word boundaries (the default i think).

Expected Results:  
binding CTRL-w to backward-kill-word, should make CTRL-w delete backwards
considering whitespace _and_ ! , . : ; / (possibly more) as word boundaries.

Well ~/.inputrc _is_ in fact read by bash since a lot of bindings do work, only
the 'backward-kill-word' seems to cause the problem, and it can be resolved by
re-reading the settings by issuing CTRL-x CTRL-r from bash  - interactively.
Comment 1 SpanKY gentoo-dev 2005-12-30 02:12:57 UTC
what version of bash did you upgrade from ?  in other words, what version used to work ?

does bash-3.1 work properly ?
Comment 2 SpanKY gentoo-dev 2006-11-11 00:15:22 UTC
bash-3.1 works as documented:

       backward-word (M-b)
              Move back to the start of the current or previous word.  Words are composed of alphanumeric characters  (letters
              and digits).

       backward-kill-word (M-Rubout)
              Kill the word behind point.  Word boundaries are the same as those used by backward-word.