builtin-option
Bash declare -F
Lists function names or checks specified names without printing bodies. extdebug can change displayed metadata.
Formal Syntax & Structure
bash syntaxbash
declare -F [name ...]Return Value
exit status
Lists function names or checks specified names without printing bodies. extdebug can change displayed metadata.
Working Example
Example Snippetbash
printf '%s\n' "report() { printf '%s\\n' ready; }" > helpers.bashbash ./helpers.bashif ! declare -F report >/dev/null; then printf '%s\n' absent; fisource ./helpers.bashreport