bug-bash
[Top][All Lists]
Advanced

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

Re: unix-filename-rubout doesn't work


From: Chet Ramey
Subject: Re: unix-filename-rubout doesn't work
Date: Tue, 3 Aug 2004 15:05:49 -0400

> Machine Type: i686-pc-linux-gnu
> 
> Bash Version: 3.0
> Patch Level: 0
> 
> Description:
>     My ~/.inputrc is
>       set editing-mode vi
> 
>       set keymap vi-insert
>       C-w: unix-filename-rubout
> 
>       set keymap vi-command
>       C-w: unix-filename-rubout
> 
>     And, C-w works in command mode, but doesn't work in insert mode.  The
>     function rl_unix_filename_rubout() is the same as what I posted to
>     <comp.unix.shell>, and that worked in Bash-2.05b.

This happens because bash maps the tty special characters (^C, ^W, ^U, ^V,
and so on) to their bash equivalents every time readline is invoked.

I implemented this in response to complaints that readline failed to notice
changes made via `stty'.  It's reasonable to have readline do what the user
expects here.

Yours is the first complaint the other way.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.cwru.edu    http://tiswww.tis.cwru.edu/~chet/




reply via email to

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