Can I read the name of a shell function?
Morche Matthias
Matthias.Morche@szm.de
Fri Nov 7 17:15:00 GMT 2003
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/
More information about the Cygwin
mailing list