Say I have this function:
function run_sanity_check(){
echo -e "This is test level 1\n"
echo -e "This is test level 2\n"
}
and this other function:
function run_test(){
... environment setup routine runs here
echo -e "Running tests...\n"
run_sanity_check --> this would be my call for the function above
}
When I call "run_test" I get this error: function: not found
Any help is appreciated.
functionkeyword but not both. Your problem is not with the invocation it's with the definition. See tldp.org/LDP/abs/html/functions.html