bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash ignoring .inputrc (or am I dumb)


From: William Yardley
Subject: Re: bash ignoring .inputrc (or am I dumb)
Date: Thu, 30 Mar 2006 10:55:03 -0800
User-agent: Mutt/1.5.11

On Thu, Mar 30, 2006 at 11:13:44AM -0500, Paul Jarc wrote:
> William Yardley <bash-bugs@veggiechinese.net> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]