🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #599

Another key binding question

#599
From: Martin Farach
Date: Mon, 11 Sep 1989 17:48
48 lines
2259 bytes
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			|                                     *
*******************************************************************************
Technical Details
Message-ID: <MPF.89Sep11134825@triplea.cs.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!aplcen!uakari.primate.wisc.edu!ark1!dtix!mimsy!mimsy.umd.edu!mpf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!ginosko!aplcen!uakari.primate.wisc.edu!ark1!dtix!mimsy!mimsy.umd.edu!mpf
From: mpf@triplea.cs.umd.edu (Martin Farach)
Newsgroups: gnu.bash.bug
Subject: Another key binding question
Message-ID: <MPF.89Sep11134825@triplea.cs.umd.edu>
Date: 11 Sep 89 17:48:25 GMT
Sender: nobody@mimsy.UUCP
Distribution: gnu
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 48