[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash won't let me bind \C-w
From: |
Chet Ramey |
Subject: |
Re: bash won't let me bind \C-w |
Date: |
Fri, 21 Aug 2009 21:57:07 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
Dieter Holkenpolk wrote:
> bash-4.0$ a () { bind '"\C-w": unix-filename-rubout'; }
> bash-4.0$ b () { bind -p | grep 'unix.*rubout'; }
> bash-4.0$ a; b
> "\C-w": unix-filename-rubout
> # unix-word-rubout (not bound)
> bash-4.0$ b
> # unix-filename-rubout (not bound)
> "\C-w": unix-word-rubout
> bash-4.0$
>
> Same in bash-3.2.
The last time this came up, I wrote:
Beginning with bash-3.0, after a number of requests for the feature,
readline began "honoring" the terminal special characters by binding
them to their readline equivalents at startup.
In bash-3.1, this was made dependent on the value of the readline variable
`bind-tty-special-chars', which is on by default.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/