delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/02/14/11:48:40

From: shochat AT itg-sepg DOT logicon DOT com (David Shochat)
Subject: Re: Retrieve function definition in bash
14 Feb 1997 11:48:40 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <330366D1.2E33.cygnus.gnu-win32@itg-sepg.logicon.com>
References: <33012C48 DOT 6964 AT itg-sepg DOT logicon DOT com> <3302F42B DOT 446B AT mpa-garching DOT mpg DOT de>
Reply-To: shochat AT itg-sepg DOT logicon DOT com
Mime-Version: 1.0
X-Sender: David Shochat <shochat AT itg-sepg DOT logicon DOT com>
X-Mailer: Mozilla 4.0b1 (Win95; I)
Original-CC: gnu-win32 AT cygnus DOT com
X-Priority: Normal
Original-Sender: owner-gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019