On Thu, Mar 30, 2006 at 11:13:44AM -0500, Paul Jarc wrote:
> William Yardley <[EMAIL PROTECTED]> wrote:

> > I would still like to know if there's a way to bind ^W to
> > backward-kill-word within bash, so if anyone has suggestions, I'd
> > appreciate them.
 
> Check out the "bind" builtin command in the man page or "help bind".

So, forgive me if I'm dense, but:
bind '"\C-w": backward-kill-word'
?

This doesn't seem to work w/ bash 3.00.x; with other versions, it works
just the same as putting it in .inputrc. So I don't think this really
fixes the "problem" w/ bindings defined by the system.

On Thu, Mar 30, 2006 at 11:17:32AM -0500, Chet Ramey wrote:
 
> Bash picks up bindings from the stty special characters.  On bash-3.1,
> that behavior is optional:  look at the `bind-tty-special-chars'
> readline variable.

set bind-tty-special-chars off in .inputrc works for me w/ 3.1 - thanks
(Do I need to do any conditional tests on bash version? It doesn't seem
to cause any errors with older versions of Readline).

Is there any "fix" (even a dumb one) within bash 3.00.x? I'm likely to
be using the vendor supplied bash for a while on a lot of systems (RHEL
4, for instance), and don't particularly want to futz with installing a
different version.

w



_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to