>> if i have function:
>> func_a ()
>> printf " I'm in '%s'\n" how_do_I_get_function_name;
>> How do I get the function name.
>> I'll be writing a lot of these, lots of cutting and pasting.
>> It will be VERY easy to forget to change the name of the function
>> nested within the function.
>> So how do I get the name?
> In bash, there is the variable, FUNCNAME:
> printf "FUNCNAME = %s" $FUNCNAME
> I have never needed it; why do you?
Just one way. For each task I will have a function by the same name It will
also be part of the output directory.
The more I can cut/paste without having to edit, the better off I am.
> Chris F.A. Johnson http://cfaj.freeshell.org/shell
> My code (if any) in this post is copyright 2004, Chris F.A. Johnson
> and may be copied under the terms of the GNU General Public License
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
Texas Instruments ASIC Circuit Design Methodology Group