[gnu.bash.bug] Another key binding question

mpf@triplea.cs.umd.edu (Martin Farach) (09/12/89)

I recently posted a question about binding the arrow keys to the
obvious functions.  Thanks to all those who answered my question.

Now I have the following question.

I have the following in my .bash_profile:

foo () {
   echo -n bar
}

And the line:

M-f: foo

in my .inputrc, I don't get M-f bound to foo.  Instead I get a beep
from M-f.  Is there any way to get this kind of behaviour?

Alternatively, can I bind a key to a *sequence* of command-line
editing commands, rather than a single command (a la cmu-shell
macros)?

Thanks again for your help.

Martin Farach


*******************************************************************************
* Martin Farach				|                                     *
* University of Maryland		|                                     *
* Department of Computer Science	|                                     *
* College Park, Maryland 20742		|                                     *
*					|                                     *
* also know as:				|                                     *
* mpf@brillig.umd.edu			|                                     *
*******************************************************************************
--

*******************************************************************************
* Martin Farach				|                                     *
* University of Maryland		|                                     *
* Department of Computer Science	|                                     *
* College Park, Maryland 20742		|                                     *
*					|                                     *
* also know as:				|                                     *
* mpf@brillig.umd.edu			|                                     *
*******************************************************************************