bug-bash
[Top][All Lists]
Advanced

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

Re: Some readline functions can't be unbound with bind -u


From: Chet Ramey
Subject: Re: Some readline functions can't be unbound with bind -u
Date: Mon, 8 May 2017 16:06:22 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.0

On 5/8/17 2:18 PM, Eduardo Bustamante wrote:
> dualbus@debian:~/src/gnu/bash$ for fn in edit-and-execute-command
> kill-line yank yank-pop; do echo $fn:; fn=$fn ./bash --noprofile
> --norc -ic 'bind -q $fn; bind -u $fn; bind -q $fn'|sed 's/^/  /'; done
> edit-and-execute-command:
>   edit-and-execute-command can be invoked via "\C-x\C-e".
>   edit-and-execute-command can be invoked via "\C-x\C-e".

This is more of a documentation problem. Unless you use the `-m' option,
the commands act on the current keymap, which is either `emacs' or
(usually) `vi-insert'.  The man page isn't clear on that.

Using 'bind -u -m emacs-ctlx edit-and-execute-command' works.  Similarly
for 'bind -u -m emacs-meta yank-pop'.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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