Hello,

What I'd like to do is to bind a function to a key sequence (not a
single-byte one - e.g. F1, Arrow Up, etc.).

One would try:

hello() { echo world; }
bind -x '"ab": hello'

The above works if typed "ab". But then:

hello() { echo world; }
bind -x '"abc": hello'

does not and prints (when "abc" is typed):

./script: line 6: bash_execute_unix_command: cannot find keymap for command

I've found anything but an ugly hack [1] as a workaround for this bug.

I'm using "GNU bash, version 4.1.7(2)-release (i686-pc-linux-gnu)" on ArchLinux.

Is this expected? If so, why isn't it stated in the man page? Or am I
missing something?

Thanks in advance. CC me since I'm not subscribed to the list, please.


-- 
Regards,
Michał Kazior.


[1] http://unix.derkeiler.com/Newsgroups/comp.unix.shell/2003-11/0926.html

Reply via email to