This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Can I read the name of a shell function?
- From: "Morche Matthias" <Matthias dot Morche at szm dot de>
- To: "zzapper" <david at tvis dot co dot uk>, <cygwin at cygwin dot com>
- Date: Fri, 7 Nov 2003 18:14:18 +0100
- Subject: RE: Can I read the name of a shell function?
Did You try $FUNCNAME? See also "man bash" :-)
as in "fn () { echo $FUNCNAME ; }"
> -----Original Message-----
> From: zzapper [mailto:david@tvis.co.uk]
> Sent: Friday, November 07, 2003 1:18 PM
> To: cygwin@cygwin.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/