diff --git a/README.md b/README.md index 79ca77a..c5a3e76 100644 --- a/README.md +++ b/README.md @@ -2132,7 +2132,8 @@ printf '\n' get_functions() { # Usage: get_functions IFS=$'\n' read -d "" -ra functions < <(declare -F) - printf '%s\n' "${functions[@]//declare -f }" + functions=("${functions[@]#* }") + printf '%s\n' "${functions[@]#* }" } ```