| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| content-class: | urn:content-classes:message |
| MIME-Version: | 1.0 |
| X-MimeOLE: | Produced By Microsoft Exchange V6.0.6375.0 |
| Subject: | RE: Can I read the name of a shell function? |
| Date: | Fri, 7 Nov 2003 18:14:18 +0100 |
| Message-ID: | <D7FBE8A336018A4EB5EBDC6C898821930536E2D5@HUELVA.belgium.fhm.de> |
| X-MS-Has-Attach: | |
| X-MS-TNEF-Correlator: | |
| From: | "Morche Matthias" <Matthias DOT Morche AT szm DOT de> |
| To: | "zzapper" <david AT tvis DOT co DOT uk>, <cygwin AT cygwin DOT com> |
| X-OriginalArrivalTime: | 07 Nov 2003 17:14:20.0036 (UTC) FILETIME=[94E3BC40:01C3A552] |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id hA7HFfQD012163 |
Did You try $FUNCNAME? See also "man bash" :-)
as in "fn () { echo $FUNCNAME ; }"
> -----Original Message-----
> From: zzapper [mailto:david AT tvis DOT co DOT uk]
> Sent: Friday, November 07, 2003 1:18 PM
> To: cygwin AT cygwin DOT com
> Subject: Can I read the name of a shell function?
>
>
> HiYaAll
>
> I have created a lot of functions in my .profile
>
> When I try to read the function name from within the function $0 just
> returns bash. Is there any way of reading the functions name??
>
>
> zzapper
> --
>
> vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?"
>
> http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |