This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Retrieve function definition in bash


David Syer wrote:
> 
> David Shochat wrote:
> >
> > How can I get bash to show me the definition of a function I've already
> > defined?
> 
> % type fname
> 
I have a function mman defined like this in my .bashrc:

 function mman() { troff -man -Tascii $1 | grotty | less; }

I know the definition is there, because it works.
But if I do:

 type mman

I get back

mman is a function
mman

Note: I'm using the Cygnus gnu-win32 port of bash on Win 95. Do my results mean it 
is brain-damaged?
Thanks -- David
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]